Rev 4684 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 4676 | bpr | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | |||
| 3 | <!-- |
||
| 4 | |||
| 5 | This is the Ant build script for Lattice.jar. |
||
| 6 | to build ,type: |
||
| 7 | ant -v |
||
| 8 | to clean , type |
||
| 9 | ant -v clean |
||
| 10 | |||
| 11 | --> |
||
| 12 | |||
| 13 | |||
| 14 | <project name="Lattice" default="jar" basedir="."> |
||
| 15 | |||
| 16 | <description>Lattice build file</description> |
||
| 17 | <!-- Set global properties for this build. --> |
||
| 18 | <property name="version" value="1.0"/> |
||
| 19 | <property name="source-dir" location="src"/> |
||
| 20 | <property name="build" location="build"/> |
||
| 21 | <property name="dist" location="dist"/> |
||
| 22 | <property name="java-level" value="1.4"/> |
||
| 23 | <property name="wims_old_classes_dir" location="../../../../public_html/java/Lattice"/> |
||
| 24 | |||
| 25 | <!-- Compiles the classes. --> |
||
| 26 | <target name="compile" description="Compile the source"> |
||
| 27 | <delete includeEmptyDirs="true" quiet="true" dir="${build}"/> |
||
| 28 | <mkdir dir="${build}"/> |
||
| 29 | <javac srcdir="${source-dir}" destdir="${build}" source="${java-level}" target="${java-level}"/> |
||
| 30 | </target> |
||
| 31 | |||
| 32 | |||
| 33 | <!-- Creates the jar file. --> |
||
| 34 | |||
| 35 | <target name="jar" depends="compile" description="Create Lattice jar"> |
||
| 36 | <mkdir dir="${dist}"/> |
||
| 37 | <jar destfile="${dist}/Lattice.jar"> |
||
| 38 | <fileset dir="${build}"/> |
||
| 39 | <manifest> |
||
| 40 | <attribute name="Specification-Title" value="Lattice"/> |
||
| 41 | <attribute name="Specification-Version" value="${version}"/> |
||
| 42 | <attribute name="Implementation-Title" value="Lattice"/> |
||
| 43 | <attribute name="Implementation-Version" value="${version}"/> |
||
| 44 | <section name="Lattice"> |
||
| 45 | <attribute name="Specification-Title" value="Lattice"/> |
||
| 46 | <attribute name="Specification-Version" value="${version}"/> |
||
| 47 | <attribute name="Implementation-Title" value="Lattice"/> |
||
| 48 | <attribute name="Implementation-Version" value="${version}"/> |
||
| 49 | </section> |
||
| 50 | </manifest> |
||
| 51 | </jar> |
||
| 52 | </target> |
||
| 53 | <target name="clean" description="clean up"> |
||
| 54 | <!-- Delete the ${build} and ${dist} directory trees --> |
||
| 55 | <delete dir="./build"/> |
||
| 56 | <delete dir="./dist"/> |
||
| 57 | </target> |
||
| 58 | |||
| 59 | |||
| 60 | </project> |