awips2/nativeLib/build.ohd/build-common.xml
root 06a8b51d6d Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

94 lines
No EOL
3 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="build-common" default="default">
<!-- MY_DIR=/fs/hseb/pda/users/dsa/devl -->
<!-- <property name="ds_build" value="${env.DS_BUILD}"/> -->
<!-- Imports ================================================================== -->
<import file="dependencies.xml"/>
<!-- Directory definitions ==================================================== -->
<property name="jar.name" value="${ant.project.name}.jar" />
<property name="src.dir" location="src" />
<property name="classes.dir" location="classes" />
<property name="other.classes.dir" location="other_classes" />
<property name="exlib.dir" location="../ohd.lib" />
<property name="release.dir" location="../../release" />
<property name="devlib.dir" location="../build.ohd/build" />
<property name="bin.dir" location="/tmp/hydro/whfs/bin" />
<property name="pproc.bin.dir" location="/tmp/hydro/pproc/bin" />
<!-- Paths ==============================================+===================== -->
<path id="project.classpath">
<pathelement location="${classes.dir}" />
<pathelement location="${other.classes.dir}" />
<pathelement location="${exlib.dir}/junit.jar" />
<pathelement location="${exlib.dir}/ihfsdb.jar" />
<pathelement location="${exlib.dir}/rax_apps.jar" />
<pathelement location="${exlib.dir}/damcrest.jar" />
</path>
<!-- Real Targets ============================================================== -->
<target name="default" depends="build"/>
<target name="build.full" depends="project.dependencies, build" />
<target name="build" depends="print, compile, jar, deliver"/>
<target name="project.dependencies">
<antcall target="project.${ant.project.name}"/>
</target>
<target name="print">
<echo message="${ant.project.name}"/>
</target>
<target name="prepare">
<mkdir dir="${classes.dir}" />
<mkdir dir="${other.classes.dir}" />
<antcall target="prepare.compile.${ant.project.name}" />
</target>
<target name="compile" description="Compiles the java source code" depends="prepare">
<javac srcdir="${src.dir}" destdir="${classes.dir}">
<classpath refid="project.classpath" />
</javac>
</target>
<target name="jar" description="JARs project" >
<antcall target="jar.${ant.project.name}"/>
</target>
<target name="clean">
<echo message = "cleaning ${ant.project.name} on ${classes.dir}" />
<delete dir="${classes.dir}" />
</target>
<target name="scrub" depends="clean">
<echo message = "scrubbing ${ant.project.name} ${other.classes.dir}" />
<delete dir="${other.classes.dir}" />
</target>
<target name="deliver">
<antcall target="deliver.${ant.project.name}"/>
</target>
<!-- End Targets ================================================================ -->
</project>