Former-commit-id:22a29b98b2
[formerlya90d64e1fc
] [formerly0df0aa8663
[formerly bd658184b246452b5d3e2154d79f2179bdc12594]] Former-commit-id:0df0aa8663
Former-commit-id:e1f03d9369
86 lines
No EOL
3.4 KiB
XML
86 lines
No EOL
3.4 KiB
XML
<project name="miscsetConverter" default="build-jar" basedir=".">
|
|
<description>
|
|
This build file is for building miscsetConverter 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 distMisc 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 click "Run"
|
|
</description>
|
|
|
|
<!-- set global properties for this build -->
|
|
<property name="project_name" value="miscsetConverter"/>
|
|
<property name="src" location="src" />
|
|
<!-- <property name="srcOther" location="../com.raytheon.uf.viz.core/src" /> -->
|
|
<property name="build" location="build" />
|
|
<property name="distMisc" location="distMisc" />
|
|
<property name="miscsetConverter" location="gov/noaa/nws/ncep/standalone/miscsetConverter" />
|
|
<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.viz.resources/bin" includes="**/*.class"/>
|
|
-->
|
|
<fileset dir="../com.raytheon.uf.common.serialization/bin" includes="**/*.class"/>
|
|
<fileset dir="../gov.noaa.nws.ncep.viz.common/bin" includes="**/*.class"/>
|
|
<fileset dir="${bin}" includes="**/*.class"/>
|
|
</copy>
|
|
|
|
<!-- <mkdir dir="${distMisc}/lib" /> -->
|
|
<!--copy todir="${distMisc}/lib"-->
|
|
<!--fileset dir="../org.apache.commons.httpclient" includes="*.jar"/--> <!-- needed?? -->
|
|
<!--fileset dir="../../eclipse/plugins" includes="*swt.gtk.linux.x86*.jar" excludes="*source*"/-->
|
|
<!--/copy-->
|
|
<!--
|
|
<copy todir="${distMisc}/table">
|
|
<fileset dir="../gov.noaa.nws.ncep.standalone/table" includes="enhance.tbl"/>
|
|
</copy>
|
|
-->
|
|
<copy todir="${distMisc}" file="hlp/${project_name}.hlp"/>
|
|
|
|
<path id="distMisc.classpath">
|
|
<fileset dir="${distMisc}/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="${distMisc}/lib" />
|
|
|
|
<manifestclasspath property="distMisc.manifest.classpath" jarfile="${distMisc}/${project_name}.jar">
|
|
<classpath refid="distMisc.classpath" />
|
|
</manifestclasspath>
|
|
|
|
<jar jarfile="${distMisc}/${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="${distMisc.manifest.classpath}"/>
|
|
<attribute name="Main-Class" value="gov/noaa/nws/ncep/standalone/miscsetConverter/MiscsetConvert"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="clean" description="clean up">
|
|
<!-- Delete the ${build} and ${distMisc} directory trees -->
|
|
<delete dir="${build}" />
|
|
<delete dir="${distMisc}" />
|
|
</target>
|
|
</project> |