source: fedd/abac-src/atnvis/build.xml @ 4adc697

version-1.30
Last change on this file since 4adc697 was 15100e9, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

Removed tmp files and added build.xml for ant

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[15100e9]1<!-- $Id: build.xml,v 1.9 2003/07/18 18:18:22 jjacobs Exp $ -->
2<project name="ATN Visualizer" default="compile" basedir=".">
3<!-- ===================== Property Definitions =========================== -->
4  <property name="src.home"      value="${basedir}/src"/>
5  <property name="dist.home"     value="${basedir}/dist"/>
6  <property name="jar.main"      value="com.algomagic.atn.Visualization"/>
7  <!-- The GraphVis based Java library -->
8  <property name="grappa.jar" value="./grappa.jar"/>
9<!--  ==================== Compilation Control Options ==================== -->
10<!--
11  These properties control option settings on the Javac compiler when it
12  is invoked using the <javac> task.
13  compile.debug        Should compilation include the debug option?
14  compile.deprecation  Should compilation include the deprecation option?
15  compile.optimize     Should compilation include the optimize option?
16-->
17  <property name="compile.debug"       value="true"/>
18  <property name="compile.deprecation" value="false"/>
19  <property name="compile.optimize"    value="true"/>
20<!-- ==================== Compilation Classpath =========================== -->
21  <path id="compile.classpath">
22    <pathelement location="${grappa.jar}"/>
23  </path>
24<!-- ==================== All Target ====================================== -->
25  <target name="all" depends="clean,compile"
26   description="Clean build and dist directories, then compile"/>
27<!-- ==================== Clean Target ==================================== -->
28  <target name="clean"
29   description="Delete old build and dist directories">
30    <delete dir="classes"/>
31    <delete dir="dist/docs/api"/>
32    <delete file="atnvis.jar"/>
33  </target>
34<!-- ==================== Compile Target ================================== -->
35  <target name="compile" description="Compile Java sources">
36    <!-- Compile Java classes as necessary -->
37    <mkdir    dir="classes"/>
38    <javac srcdir="${src.home}"
39          destdir="classes"
40            debug="${compile.debug}"
41      deprecation="${compile.deprecation}"
42         optimize="${compile.optimize}">
43        <classpath refid="compile.classpath"/>
44    </javac>
45  </target>
46
47
48<!-- ==================== Dist Target ===================================== -->
49  <target name="jar" depends="compile"
50   description="Create binary distribution">
51    <!-- Create application JAR file -->
52    <jar jarfile="atnvis.jar">
53      <fileset dir="classes"/>
54      <fileset dir="src"/>
55      <manifest>
56         <attribute name="Main-Class" value="${jar.main}"/>
57         <attribute name="Class-Path" value="grappa.jar"/>
58      </manifest>
59    </jar>
60  </target>
61<!-- ==================== Javadoc Target ================================== -->
62  <target name="javadoc" depends="compile"
63   description="Create Javadoc API documentation">
64    <mkdir          dir="${dist.home}/docs/api"/>
65    <javadoc sourcepath="${src.home}"
66                destdir="${dist.home}/docs/api"
67           packagenames="*">
68      <classpath refid="compile.classpath"/>
69    </javadoc>
70  </target>
71</project>
Note: See TracBrowser for help on using the repository browser.