Former-commit-id:22a29b98b2
[formerlya90d64e1fc
] [formerly0df0aa8663
[formerly bd658184b246452b5d3e2154d79f2179bdc12594]] Former-commit-id:0df0aa8663
Former-commit-id:e1f03d9369
114 lines
No EOL
5 KiB
XML
114 lines
No EOL
5 KiB
XML
<project name="compareXml" default="build-jar" basedir=".">
|
|
<description>
|
|
This build file is for building testConverter 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 distXT 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="compareXml"/>
|
|
<property name="src" location="src" />
|
|
<!-- <property name="srcOther" location="../com.raytheon.uf.viz.core/src" /> -->
|
|
<property name="build" location="build" />
|
|
<property name="distXT" location="distXT" />
|
|
<property name="compareXml" location="gov/noaa/nws/ncep/standalone/testConverter" />
|
|
<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.viz.core/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.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.edex.common/bin" includes="**/*.class"/>
|
|
<fileset dir="../gov.noaa.nws.ncep.viz.localization/bin" includes="**/*.class"/>
|
|
<fileset dir="../com.raytheon.uf.common.comm/bin" includes="**/*.class"/>
|
|
<fileset dir="${bin}" includes="**/*.class"/>
|
|
</copy>
|
|
|
|
<copy todir="${distXT}/lib"> <!--/lib-->
|
|
<fileset dir="../../eclipse/plugins" includes="javax.xml.bind_2.0.0.v20080604-1500.jar"/>
|
|
<fileset dir="../org.geotools" includes="*.jar"/>
|
|
<fileset dir="../../eclipse/plugins" includes="org.eclipse.jface_3.6.1.M20100825-0800.jar"/>
|
|
<fileset dir="../../eclipse/plugins" includes="org.eclipse.core.commands_3.6.0.I20100512-1500.jar"/>
|
|
<fileset dir="../../eclipse/plugins" includes="org.eclipse.core.runtime_3.6.0.v20100505.jar"/>
|
|
<fileset dir="../../eclipse/plugins" includes="org.eclipse.equinox.common_3.6.0.v20100503.jar"/>
|
|
<fileset dir="../../eclipse/plugins" includes="org.eclipse.equinox.registry_3.5.0.v20100503.jar"/>
|
|
<fileset dir="../../eclipse/plugins" includes="org.eclipse.osgi_3.6.1.R36x_v20100806.jar"/>
|
|
<!--fileset dir="../org.apache.commons.httpclient" includes="*.jar"/-->
|
|
<fileset dir="../com.facebook.thrift" includes="*.jar"/>
|
|
<fileset dir="../net.sf.cglib" includes="*.jar"/>
|
|
<fileset dir="../javax.measure" includes="*.jar"/>
|
|
</copy>
|
|
|
|
<copy todir="${distXT}/table">
|
|
<fileset dir="../gov.noaa.nws.ncep.standalone/table" includes="spcwatch.xml"/>
|
|
<fileset dir="../gov.noaa.nws.ncep.standalone/table" includes="vaa.xml"/>
|
|
<fileset dir="../gov.noaa.nws.ncep.standalone/table" includes="mzcntys.xml"/>
|
|
</copy>
|
|
<!-- <copy todir="${distXT}">
|
|
<fileset dir="../gov.noaa.nws.ncep.standalone/script" includes="xmlnxml"/>
|
|
</copy> -->
|
|
|
|
<path id="distXT.classpath">
|
|
|
|
<fileset dir="${distXT}/lib" casesensitive="yes"> <!--/lib-->
|
|
<include name="**/*.jar" />
|
|
</fileset>
|
|
|
|
<!--
|
|
<fileset dir="${distXT}" 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="${distXT}/lib" />
|
|
-->
|
|
<manifestclasspath property="distXT.manifest.classpath" jarfile="${distXT}/${project_name}.jar">
|
|
<classpath refid="distXT.classpath" />
|
|
</manifestclasspath>
|
|
|
|
<jar jarfile="${distXT}/${project_name}.jar" basedir="${build}">
|
|
<fileset dir="${build}" includes="**/*.*" />
|
|
|
|
<fileset dir="${distXT}/lib" includes="**/*.*" /> <!--/lib-->
|
|
<fileset dir="." includes="spcwatch.xml" />
|
|
|
|
<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="${distXT.manifest.classpath}"/>
|
|
<attribute name="Main-Class" value="gov/noaa/nws/ncep/standalone/testConverter/TestXmlConvert"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="clean" description="clean up">
|
|
<!-- Delete the ${build} and ${distXT} directory trees -->
|
|
<delete dir="${build}" />
|
|
<delete dir="${distXT}" />
|
|
</target>
|
|
</project> |