-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmisc.xml
168 lines (142 loc) · 5.62 KB
/
misc.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<project name="misc" basedir=".">
<!-- Miscellaneous targets, including documentation. -->
<!-- Depends on commandline version, so that we can run javadocs on
the parsed version. -->
<target name="javadocs" depends="buildAllJavaME">
<javadoc packagenames="org.hecl,org.hecl.*"
destdir="docs/jdocs"
author="true"
version="true"
use="true">
<classpath path="jars/jline-0.9.94.jar"></classpath>
<classpath path="jars/commons-cli-1.1.jar"></classpath>
<classpath path="heclbuilder/swing-layout-1.0.jar"></classpath>
<classpath refid="j2me.coreclasspath"/>
<classpath path="${wtk.home}/lib/midpapi20.jar"/>
<arg value="-notimestamp"/>
<sourcepath>
<pathelement path="build/j2se/pre/core/"/>
</sourcepath>
<sourcepath>
<pathelement path="build/j2se/pre/files"/>
</sourcepath>
<sourcepath>
<pathelement path="build/j2se/pre/net"/>
</sourcepath>
<sourcepath>
<pathelement path="heclbuilder"/>
</sourcepath>
<sourcepath>
<pathelement path="jarhack"/>
</sourcepath>
<sourcepath>
<pathelement path="build/j2se/pre/java"/>
</sourcepath>
<sourcepath>
<pathelement path="build/j2me/pre/cldc1.0-midp1.0/midp10gui"/>
</sourcepath>
<sourcepath>
<pathelement path="build/j2me/pre/cldc1.1-midp2.0/midp20gui"/>
</sourcepath>
<sourcepath>
<pathelement path="build/j2me/pre/cldc1.1-midp2.0/rms"/>
</sourcepath>
</javadoc>
</target>
<target name="docbookresolve">
<exec executable="xmllint" output="docs/hecl-processed.xml" error="docs/processing-errors.txt">
<arg value="--xinclude" />
<arg value="docs/hecl.xml" />
</exec>
</target>
<target name="docbook" depends="docbookresolve">
<exec executable="xsltproc">
<arg value="--nonet" />
<arg value="--stringparam" />
<arg value="html.stylesheet" />
<arg value="hecl.css" />
<arg value="--stringparam"/>
<arg value="generate.section.toc.level"/>
<arg value="5"/>
<!-- 5 is likely higher than we will need. -->
<arg value="-o"/>
<arg value="docs/" />
<arg value="docs/chunk.xsl" />
<arg value="docs/hecl-processed.xml" />
</exec>
</target>
<target name="pdf" depends="docbookresolve">
<exec executable="fop">
<arg value="-xml" />
<arg value="docs/hecl.xml" />
<arg value="-xsl" />
<arg value="/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl" />
<arg value="-pdf" />
<arg value="docs/hecl.pdf" />
</exec>
</target>
<target name="docs" depends="javadocs,docbook">
</target>
<target name="HeclBuilder" depends="packageCommandline,packageJarHack">
<mkdir dir="build/heclbuilder" />
<javac srcdir="heclbuilder" destdir="build/heclbuilder">
<classpath refid="classpath" />
<classpath path="heclbuilder/swing-layout-1.0.jar" />
<classpath path="${j2se.hecl.lib.jar}" />
<classpath path="jars/JarHack.jar" />
</javac>
</target>
<target name="packageAndroidBuilder" depends="packageAndroid">
<mkdir dir="${j2se.build}/androidbuilder" />
<javac srcdir="androidbuilder" destdir="${j2se.build}/androidbuilder" debug="true">
<classpath path="jars/commons-cli-1.1.jar" />
</javac>
<jar destfile="jars/AndroidBuilder.jar" basedir="${j2se.build}/androidbuilder">
<manifest>
<attribute name="Main-Class" value="org.hecl.androidbuilder/AndroidBuilder"></attribute>
</manifest>
<zipfileset src="jars/commons-cli-1.1.jar" includes="org/apache/commons/cli/*.class"/>
</jar>
<jar destfile="jars/AndroidBuilder.jar" basedir="."
includes="android/Hecl.jar" update="true" />
<jar destfile="jars/AndroidBuilder.jar" basedir="."
includes="android/bin/Hecl.apk" update="true" />
<jar destfile="jars/AndroidBuilder.jar" basedir="."
includes="android/res/drawable/aicon.png" update="true" />
</target>
<target name="HeclBuilderJar" depends="buildAllJavaME,packageJarHack,HeclBuilder">
<jar destfile="jars/HeclBuilder.jar" basedir="build/heclbuilder">
<manifest>
<attribute name="Main-Class" value="org.hecl.heclbuilder/HeclBuilderGui" />
</manifest>
<zipfileset src="heclbuilder/swing-layout-1.0.jar"
includes="org/jdesktop/layout/*.class"/>
<zipfileset src="jars/JarHack.jar" includes="org/hecl/jarhack/*.class"/>
<zipfileset src="${j2se.hecl.lib.jar}" includes="org/hecl/*.class"/>
<zipfileset src="${j2se.hecl.lib.jar}" includes="org/hecl/files/*.class"/>
<zipfileset src="${j2se.hecl.lib.jar}" includes="org/hecl/fp/*.class"/>
<zipfileset src="${j2se.hecl.lib.jar}" includes="org/hecl/load/*.class"/>
</jar>
<jar destfile="jars/HeclBuilder.jar" basedir="."
includes="jars/cldc1.0-midp1.0/Hecl.jar" update="true" />
<jar destfile="jars/HeclBuilder.jar" basedir="."
includes="jars/cldc1.1-midp2.0/Hecl.jar" update="true" />
</target>
<target name="packageMidletApplets" depends="buildAllJavaME,packageAppletTweak"
description="Create applet versions of midlet jars">
<mkdir dir="jars/applet/cldc1.0-midp1.0" />
<mkdir dir="jars/applet/cldc1.1-midp2.0" />
<java jar="jars/AppletTweak.jar" fork="true">
<arg line="file:///${basedir}/jars/cldc1.0-midp1.0/Hecl.jar" />
<arg line="jars/applet/cldc1.0-midp1.0/Hecl.jar" />
</java>
<java jar="jars/AppletTweak.jar" fork="true">
<arg line="file:///${basedir}/jars/cldc1.1-midp2.0/Hecl.jar" />
<arg line="jars/applet/cldc1.1-midp2.0/Hecl.jar" />
</java>
</target>
<target name="showenv">
<exec executable="/usr/bin/env">
</exec>
</target>
</project>