Former-commit-id:22a29b98b2
[formerlya90d64e1fc
] [formerly0df0aa8663
[formerly bd658184b246452b5d3e2154d79f2179bdc12594]] Former-commit-id:0df0aa8663
Former-commit-id:e1f03d9369
122 lines
6.2 KiB
XML
122 lines
6.2 KiB
XML
<project name="joinvgf" default="build-jar" basedir=".">
|
|
<description>
|
|
This build file is for building JoinVGF 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 distJoin 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="joinvgf"/>
|
|
<property name="src" location="src" />
|
|
<property name="srcOther" location="../com.raytheon.uf.viz.core/src" />
|
|
<property name="build" location="build" />
|
|
<property name="distJoin" location="distJoin" />
|
|
<property name="joinvgf" location="gov/noaa/nws/ncep/standalone/joinvgf" />
|
|
<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="../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.uf.common.colormap/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.datastorage/bin" includes="**/*.class"/>
|
|
<fileset dir="../com.raytheon.uf.common.geospatial/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.edex.decodertools/bin" includes="**/*.class"/>
|
|
<fileset dir="../com.raytheon.uf.edex.pointdata/bin" includes="**/*.class"/>
|
|
<fileset dir="../com.raytheon.uf.viz.core/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.edex.common/bin" includes="**/*.class"/>
|
|
<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.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"/>
|
|
<fileset dir="${bin}" includes="**/*.class"/>
|
|
</copy>
|
|
|
|
<copy todir="${distJoin}/lib">
|
|
<fileset dir="../org.geotools" includes="*.jar"/>
|
|
<fileset dir="../javax.measure" includes="*.jar"/>
|
|
<fileset dir="../org.apache.log4j" includes="*.jar"/>
|
|
</copy>
|
|
|
|
<copy todir="${distJoin}" file="hlp/${project_name}.hlp"/>
|
|
|
|
<path id="distJoin.classpath">
|
|
<fileset dir="${distJoin}/lib" casesensitive="yes">
|
|
<include name="**/*.jar" />
|
|
<exclude name="**/*common*"/>
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
</target>
|
|
|
|
<target name="build-jar" depends="clean, init" description="generate the distribution">
|
|
<!-- Create the distribution directory -->
|
|
<mkdir dir="${distJoin}/lib" />
|
|
|
|
<manifestclasspath property="distJoin.manifest.classpath" jarfile="${distJoin}/${project_name}.jar">
|
|
<classpath refid="distJoin.classpath" />
|
|
</manifestclasspath>
|
|
|
|
<jar jarfile="${distJoin}/${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="${distJoin.manifest.classpath}"/>
|
|
<attribute name="Main-Class" value="gov/noaa/nws/ncep/standalone/joinvgf/JoinVGF"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="clean" description="clean up">
|
|
<!-- Delete the ${build} and ${distJoin} directory trees -->
|
|
<delete dir="${build}" />
|
|
<delete dir="${distJoin}" />
|
|
</target>
|
|
</project>
|