awips2/ncep/gov.noaa.nws.ncep.standalone/build-clipvgf.xml
Brad Gonzales af92e8d329 Issue #628 committing more PGEN code received from Plummer on 4-19-2012.
Former-commit-id: 22a29b98b2 [formerly a90d64e1fc] [formerly 0df0aa8663 [formerly bd658184b246452b5d3e2154d79f2179bdc12594]]
Former-commit-id: 0df0aa8663
Former-commit-id: e1f03d9369
2012-05-10 17:02:18 -05:00

151 lines
8.1 KiB
XML

<!--2012.01 Q.Zhou
Remove <fileset dir="../org.apache.commons.httpclient" includes="*.jar"/>
Add <fileset dir="../org.apache.http" includes="*.jar"/>
Add <fileset dir="../com.raytheon.uf.common.localization/bin" includes="**/*.class"/>
-->
<project name="clipvgf" default="build-jar" basedir=".">
<description>
This build file is for building ClipVGF application only.
This build does not compile the projects and relies on Eclipse, which automatically compiles them.
All the classes and needed jar libraries are copied to the distClip folder, the references to these files
are updated in manifest.mf
The list of projects which this xml file uses can be found below in target "init".
To build a jar file, right click on this file, then "Run As...", then Target, then Select "build-jar",
then click "Apply", then clcik "Run"
</description>
<!-- set global properties for this build -->
<property name="project_name" value="clipvgf"/>
<property name="src" location="src" />
<property name="srcOther" location="../com.raytheon.uf.viz.core/src" />
<property name="build" location="build" />
<property name="distClip" location="distClip" />
<property name="clipvgf" location="gov/noaa/nws/ncep/standalone/clipvgf" />
<property name="bin" location="bin" />
<target name="init">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<!-- Copy all the needed files from the projects which eclipse already compiled -->
<copy todir="${build}">
<fileset dir="../com.raytheon.uf.common.dataquery/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.comm/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.util/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.status/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.colormap/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.geospatial/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.serialization/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.message/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.localization/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.viz.core/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.viz.core/" includes="**/*"/>
<fileset dir="../gov.noaa.nws.ncep.ui.pgen/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.viz.common/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.edex.common/bin" includes="**/*.class"/>
<!--fileset dir="../gov.noaa.nws.ncep.viz.localization/bin" includes="**/*.class"/-->
<fileset dir="${bin}" includes="**/*.class"/>
<!-- 1300 copy less -->
<!--fileset dir="../gov.noaa.nws.ncep.ui.pgen/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.viz.core/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.edex.common/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.edex.meteolib/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.edex.plugin.obs/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.edex.plugin.satellite/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.edex.plugin.warning/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.edex.uengine/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.edex.common/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.dataplugin/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.dataplugin.level/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.dataquery/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.comm/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.util/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.datastorage/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.edex.decodertools/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.edex.pointdata/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.localization/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.message/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.pointdata/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.python/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.serialization/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.serialization.comm/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.status/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.common.time/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.uf.viz.d2d.core/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.bcd/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.core/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.core.gl/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.pointdata/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.satellite/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.shapefile/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.ui/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.ui.glMap/bin" includes="**/*.class"/>
<fileset dir="../com.raytheon.viz.ui.tools.map/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.viz.common/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.viz.resources/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.viz.rsc.plotdata/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.viz.tools/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.viz.ui.display/bin" includes="**/*.class"/>
<fileset dir="../gov.noaa.nws.ncep.viz.ui.locator/bin" includes="**/*.class"/>
<fileset dir="../meteolib.jni/bin" includes="**/*.class"/-->
</copy>
<copy todir="${distClip}/lib">
<fileset dir="../org.geotools" includes="*.jar"/>
<fileset dir="../uframe-eclipse/plugins/" includes="org.eclipse.equinox.common_3.6.0.v20100503.jar"/>
<fileset dir="../../eclipse/plugins" includes="org.eclipse.swt*.jar"/>
<fileset dir="../javax.measure" includes="*.jar"/>
<fileset dir="../javax.persistence" includes="*.jar"/>
<fileset dir="../javax.vecmath" includes="*.jar"/>
<!--fileset dir="../org.apache.commons.httpclient" includes="*.jar"/-->
<fileset dir="../org.apache.http" includes="*.jar"/>
<fileset dir="../com.facebook.thrift" includes="*.jar"/>
<fileset dir="../net.sf.cglib" includes="*.jar"/>
<fileset dir="../org.apache.log4j" includes="*.jar"/>
<fileset dir="../org.apache.commons.logging" includes="*.jar"/>
</copy>
<copy todir="${distClip}" file="hlp/${project_name}.hlp"/>
<path id="distClip.classpath">
<fileset dir="${distClip}/lib" casesensitive="yes">
<include name="**/*.jar" />
</fileset>
</path>
</target>
<target name="build-jar" depends="clean, init" description="generate the distribution">
<!-- Create the distribution directory -->
<mkdir dir="${distClip}/lib" />
<manifestclasspath property="distClip.manifest.classpath" jarfile="${distClip}/${project_name}.jar">
<classpath refid="distClip.classpath" />
</manifestclasspath>
<jar jarfile="${distClip}/${project_name}.jar" basedir="${build}">
<fileset dir="${build}" includes="**/*.*" />
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Specification-Vendor" value="Example Organization"/>
<attribute name="Build-Date" value="${TODAY}"/>
<attribute name="Implementation-Vendor" value="SIB"/>
<attribute name="Class-Path" value="${distClip.manifest.classpath}"/>
<attribute name="Main-Class" value="gov/noaa/nws/ncep/standalone/clipvgf/ClipVGF"/>
</manifest>
</jar>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${distClip} directory trees -->
<delete dir="${build}" />
<delete dir="${distClip}" />
</target>
</project>