optimize chkp after ldb
[charm.git] / src / langs / charj / build.xml
1 <project name="Charj" default="dist" basedir=".">
2     <description>
3         A translator and standard library for Charj, a language based on the
4         Charm++ runtime system.
5     </description>
6
7     <property name="project.name" value="Charj" />
8
9     <!-- set global properties for this build -->
10     <property name="build" location="build"/>
11     <property name="src" location="src"/>
12     <property name="buildsrc" location="${build}/src"/>
13     <property name="buildlib" location="${build}/lib" />
14     <property name="classes" location="${build}/classes"/>
15     <property name="lib" location="lib" />
16     <property name="doc" location="docs"/>
17
18     <property name="package" value="charj"/>
19
20     <!-- where to write/find token files -->
21     <property name="token.lib" location="${buildsrc}/${package}" />
22
23     <!-- Define path used for classpath later -->
24     <path id="project.class.path.3.2">
25         <pathelement location="lib/antlr-3.2.jar"/>
26         <pathelement location="lib/JSAP-2.1.jar"/>
27     </path>
28     <property name="classpath" value="project.class.path.3.2"/>
29
30     <target name="compile"
31         description="compile">
32         <javac debug="true" srcdir="${buildsrc}" destdir="${classes}"
33             target="1.5" listfiles="Yes" deprecation="Yes"
34             includeantruntime="false">
35             <classpath refid="${classpath}"/>
36         </javac>
37     </target>
38
39     <target name="manifest">
40         <manifest file="${classes}/META-INF/MANIFEST.MF">
41             <attribute name="Main-Class" value="charj.Main" />
42         </manifest>
43     </target>
44
45     <target name="dist" depends="compile, manifest"
46        description="create jarfiles">
47        <jar jarfile="${buildlib}/charj.jar"
48            basedir="${classes}"
49            manifest="${classes}/META-INF/MANIFEST.MF">
50             <fileset dir="${buildsrc}" includes="**/*.stg" />
51         </jar>
52     </target>
53
54     <target name="doc" description="generate documentation">
55        <javadoc destdir="${doc}"
56                 author="true"
57                 version="true"
58                 use="true"
59                 windowtitle="${project.name}"
60                 sourcepath="${src}"
61                 Protected="All" Private="All"
62                 Public="All"
63                 Locale="de"
64                 linksource="yes"
65                 breakiterator="Yes">
66        </javadoc>
67     </target>
68
69     <target name="clean" description="clean up">
70         <echo message="removing build directory" />
71         <delete includeEmptyDirs="true" quiet="yes">
72             <fileset dir="${build}" />
73         </delete>
74     </target>
75
76     <target name="all" depends="clean, dist, doc"
77         description="do all"/>
78
79 </project>