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