1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
<project name="Sample.Project" default="compile" basedir=".">
<!-- set global properties for this build -->
<property name="src" value="./src"/>
<property name="build" value="./classes"/>
<property name="dist" value="./dist"/>
<property name="doc" value="./doc"/>
<property name="testDeprection" value="on"/>
<property name="useDebug" value="on"/>
<property name="version" value="1.3"/>
<!-- Initialization block -->
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<!-- Compile the ORBacus libray -->
<target name="ORBacus">
<javac deprecation="${testDeprection}" srcdir="${src}/org/SPC/ORBacus/" destdir="${build}" source="${version}"/>
</target>
<!-- Compile the main libray -->
<target name="lib" depends="init,ORBacus">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/lib/" destdir="${build}" source="${version}"/>
</target>
<!-- Compile the applications libray -->
<target name="app" depends="init,ORBacus,lib">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/applications/" destdir="${build}" source="${version}"/>
</target>
<!-- Compile the IO libray -->
<target name="OFP_IO" depends="lib">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/io/" destdir="${build}" source="${version}"/>
</target>
<target name="Animator" depends="lib,app">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/Animator/" destdir="${build}" source="${version}"/>
</target>
<target name="OceanView" depends="lib,app,ORBacus,Animator,OFP_IO">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/OceanView/" destdir="${build}" source="${version}"/>
</target>
<target name="MULTIFAN_CL" depends="lib,app,OFP_IO">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/MULTIFAN_CL/" destdir="${build}" source="${version}"/>
</target>
<target name="SepodymViewer" depends="lib,app,OFP_IO">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/SepodymViewer/" destdir="${build}" source="${version}"/>
</target>
<target name="NetCDFExtractor" depends="lib,app,OFP_IO">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/NetCDFExtractor/" destdir="${build}" source="${version}"/>
</target>
<target name="RegionCreator" depends="lib,app,OFP_IO">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/RegionCreator/" destdir="${build}" source="${version}"/>
</target>
<target name="PATCleaner" depends="lib,app">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/PATCleaner/" destdir="${build}" source="${version}"/>
</target>
<target name="NCARConverter" depends="lib,app,OFP_IO">
<javac deprecation="${testDeprection}" debug="${useDebug}" srcdir="${src}/org/SPC/OFP/NCARConverter/" destdir="${build}" source="${version}"/>
</target>
<!-- Compile all targets -->
<target name="all" depends="lib,ORBacus,OFP_IO,Animator,MULTIFAN_CL,NetCDFExtractor,OceanView,RegionCreator,SepodymViewer,PATCleaner,NCARConverter"/>
<!-- Default target -->
<target name="compile" depends="all"/>
<!-- Archive distribution -->
<target name="dist" depends="compile">
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/lib/save-${DSTAMP}.jar" basedir="${build}"/>
</target>
<!-- Generates documentation -->
<target name="doc">
<!-- Create the distribution directory -->
<mkdir dir="${doc}"/>
<!-- Generates documentation -->
<javadoc sourcepath="${src}" destdir="${doc}" Version="true" Author="true" Splitindex="true"/>
</target>
<!-- Delete the ${build} and ${dist} directory trees -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
<delete dir="${doc}"/>
</target>
</project> |
Partager