Rev 4676 | 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 ThreeD.jar. |
||
6 | to build ,type: |
||
7 | ant -v |
||
8 | to clean , type |
||
9 | ant -v clean |
||
10 | |||
11 | --> |
||
12 | |||
13 | |||
14 | <project name="ThreeD" default="jar" basedir="."> |
||
15 | |||
16 | <description>ThreeD build file</description> |
||
17 | <!-- Set global properties for this build. --> |
||
18 | <property name="version" value="0.1"/> |
||
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 | <!-- used for install of symlink & jar --> |
||
24 | <property name="WIMS_HOME" value="../../../.."/> |
||
25 | <property name="APPLET_DIR" value="public_html/java"/> |
||
26 | <property name="EVERS_APPLET_DIR" value="public_html/scripts/authors/jm.evers/applets"/> |
||
27 | |||
28 | <!-- Compiles the classes. --> |
||
29 | <target name="compile" description="Compile the source"> |
||
30 | <delete includeEmptyDirs="true" quiet="true" dir="${build}"/> |
||
31 | <mkdir dir="${build}"/> |
||
32 | <javac srcdir="${source-dir}" destdir="${build}" |
||
33 | deprecation="yes" debug="${debug}" debuglevel="${debuglevel}" |
||
34 | source="${java-level}" target="${java-level}"/> |
||
35 | </target> |
||
36 | |||
37 | |||
38 | <!-- Creates the jar file. --> |
||
39 | |||
40 | <target name="jar" depends="compile" description="Create ThreeD jar"> |
||
41 | <mkdir dir="${dist}"/> |
||
42 | <jar destfile="${dist}/ThreeD.jar"> |
||
43 | <fileset dir="${build}"/> |
||
44 | <manifest> |
||
45 | <attribute name="Specification-Title" value="ThreeD"/> |
||
46 | <attribute name="Specification-Version" value="${version}"/> |
||
47 | <attribute name="Implementation-Title" value="ThreeD"/> |
||
48 | <attribute name="Implementation-Version" value="${version}"/> |
||
49 | <section name="ThreeD"> |
||
50 | <attribute name="Specification-Title" value="ThreeD"/> |
||
51 | <attribute name="Specification-Version" value="${version}"/> |
||
52 | <attribute name="Implementation-Title" value="ThreeD"/> |
||
53 | <attribute name="Implementation-Version" value="${version}"/> |
||
54 | </section> |
||
55 | </manifest> |
||
56 | |||
57 | </jar> |
||
58 | </target> |
||
59 | <target name="clean" description="clean up"> |
||
60 | <!-- Delete the ${build} and ${dist} directory trees --> |
||
61 | <delete dir="./build"/> |
||
62 | <delete dir="./dist"/> |
||
63 | </target> |
||
64 | |||
65 | |||
66 | </project> |
||
67 | |||
68 |