-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
99 lines (81 loc) · 2.8 KB
/
build.xml
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
<!--
Ant xml file for OpenJava 1.1
Aug 4, 2002 by Michiaki Tatsubori
$Id: build.xml,v 1.2 2003/02/19 02:55:02 tatsubori Exp $
JDK version 1.2.1-1.4
JavaCC version 1.0-1.1
-->
<project name="OpenJava_1.1" default="dist" basedir=".">
<!-- set site dependent properties for this build -->
<!-- <property name="javacc.home" value="/usr/java/javacc"/> -->
<property name="javacc.home" value="javacc-5.0"/>
<!-- set global properties for this build -->
<property name="src" value="src"/>
<property name="build" value="classes"/>
<property name="dist" value="."/>
<property name="htdocs" value="htdocs"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<path id="oj.build.path">
<pathelement path="${java.class.path}"/>
<pathelement location="${build}/"/>
</path>
<path id="oj.source.path">
<pathelement location="${src}/"/>
</path>
<target name="compile" depends="init,parser">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}">
<classpath refid="oj.build.path"/>
</javac>
</target>
<property name="parser.dir" value="${src}/openjava/tools/parser"/>
<target name="parser">
<!-- Create the time stamp -->
<tstamp/>
<!-- Produces Parser.java from Parser.jj -->
<javacc
target="${parser.dir}/Parser.jj"
javacchome="${javacc.home}"
outputdirectory="${parser.dir}"
buildtokenmanager="true"
/>
</target>
<target name="dist" depends="compile">
<!-- Put everything in ${build} into the openjava.jar file -->
<jar jarfile="${dist}/openjava.jar" basedir="${build}"/>
</target>
<target name="javadoc" depends="compile">
<mkdir dir="${htdocs}"/>
<javadoc
sourcepathref="oj.source.path"
destdir="${htdocs}"
classpathref="oj.build.path"
locale="en_US"
Protected="true"
Use="true"
windowtitle="OpenJava MOP API"
failonerror="true">
<packageset dir="${src}" defaultexcludes="yes">
<include name="openjava/**"/>
<exclude name="openjava/tools/**"/>
</packageset>
<doctitle><![CDATA[<h1>OpenJava MOP API</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 1998-2003 Michiaki Tatsubori All Rights Reserved.</i>]]></bottom>
<!-- <link href="http://openjava.sourceforge.net/htdocs/"/> -->
</javadoc>
</target>
<target name="full" depends="dist,javadoc"/>
<target name="clean">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete file="${dist}/openjava.jar"/>
</target>
<target name="fullclean" depends="clean">
<delete dir="${htdocs}"/>
</target>
</project>