27 |
|
</echo> |
28 |
|
</target> |
29 |
|
|
30 |
+ |
<property file="user.properties"/> |
31 |
+ |
<property name="testcase" value="*"/> |
32 |
|
|
33 |
|
<!-- Compilation options --> |
34 |
|
<property name="build.sourcelevel" value="1.5"/> |
35 |
+ |
<property name="build.docsourcelevel" value="1.4"/> |
36 |
|
<property name="build.debug" value="true"/> |
37 |
|
<property name="build.debuglevel" value="source,lines,vars"/> |
38 |
|
<property name="build.deprecation" value="false"/> |
53 |
|
<property name="build.filter.src.dir" location="${build.dir}/filtersrc"/> |
54 |
|
|
55 |
|
<!-- Source locations --> |
56 |
< |
<property name="src.dir" location="${basedir}"/> |
57 |
< |
<property name="test.src.dir" location="${basedir}/etc/testcases"/> |
56 |
> |
<property name="src.dir" location="${basedir}/src/main"/> |
57 |
> |
<property name="test.src.dir" location="${basedir}/src/test"/> |
58 |
|
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
59 |
|
<property name="stylesheet.dir" location="${basedir}/etc/xsl"/> |
60 |
|
<property name="lib.dir" location="${basedir}/lib"/> |
98 |
|
<bootclasspath refid="javac.bootclasspath"/> |
99 |
|
<compilerarg line="${javac.args} ${build.warnings.option}"/> |
100 |
|
|
98 |
– |
<!-- need this because srcdir is basedir! --> |
99 |
– |
<include name="java/**/*.java"/> |
100 |
– |
|
101 |
|
</javac> |
102 |
|
</target> |
103 |
|
|
134 |
|
<javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck" |
135 |
|
docletpath="${lib.dir}/doccheck.jar" |
136 |
|
destdir="${build.doccheck.dir}"> |
137 |
< |
<packageset dir="${build.filter.src.dir}"> |
138 |
< |
<include name="java/**"/> |
139 |
< |
</packageset> |
137 |
> |
<packageset dir="${build.filter.src.dir}"/> |
138 |
|
</javadoc> |
139 |
|
</target> |
140 |
|
|
146 |
|
<javadoc destdir="${build.javadocs.dir}" |
147 |
|
link="http://java.sun.com/j2se/1.4.1/docs/api" |
148 |
|
overview="${src.dir}/intro.html" |
149 |
< |
source="${build.sourcelevel}"> |
149 |
> |
source="${build.docsourcelevel}"> |
150 |
|
|
151 |
|
<tag name="revised" description="Last revised:"/> |
152 |
|
<tag name="spec" description="Specified by:"/> |
153 |
|
<tag name="editor" description="Last edited by:"/> |
154 |
|
<tag name="fixme" description="FIX ME:"/> |
155 |
< |
<packageset dir="${build.filter.src.dir}"> |
158 |
< |
<include name="java/**"/> |
159 |
< |
</packageset> |
155 |
> |
<packageset dir="${build.filter.src.dir}"/> |
156 |
|
|
157 |
|
</javadoc> |
158 |
|
</target> |
159 |
|
|
160 |
|
|
161 |
+ |
<!-- |
162 |
+ |
# javac -s doesn't reliably generate compilable code. It generates |
163 |
+ |
# bridge methods (marked as "synthetic") that can have identical |
164 |
+ |
# signatures to existing methods except for the return value. |
165 |
+ |
--> |
166 |
|
<target name="strip" depends="init"> |
167 |
|
<mkdir dir="${build.stripped.dir}"/> |
168 |
|
<javac srcdir="${src.dir}" |
176 |
|
<bootclasspath refid="javac.bootclasspath"/> |
177 |
|
<compilerarg line="${javac.args} ${build.warnings.option} -s"/> |
178 |
|
|
178 |
– |
<!-- need this because srcdir is basedir! --> |
179 |
– |
<include name="java/**/*.java"/> |
180 |
– |
|
179 |
|
</javac> |
180 |
|
</target> |
181 |
|
|
212 |
|
</copy> |
213 |
|
<copy tofile="${deployDir}/index.html" |
214 |
|
file="${basedir}/etc/anthill-index.html"/> |
217 |
– |
<mkdir dir="${deployDir}/notes}"/> |
215 |
|
<copy todir="${deployDir}/notes"> |
216 |
|
<fileset dir="${basedir}/etc/notes"/> |
217 |
|
</copy> |
251 |
|
overview="${src.dir}/intro.html" |
252 |
|
source="${build.sourcelevel}"> |
253 |
|
|
254 |
< |
<packageset dir="${build.filter.src.dir}"> |
258 |
< |
<include name="java/**"/> |
259 |
< |
</packageset> |
254 |
> |
<packageset dir="${build.filter.src.dir}"/> |
255 |
|
|
256 |
|
</javadoc> |
257 |
|
</target> |
270 |
|
<mkdir dir="${build.filter.src.dir}"/> |
271 |
|
<copy todir="${build.filter.src.dir}"> |
272 |
|
<fileset dir="${src.dir}"> |
273 |
< |
<include name="java/**/*.java"/> |
273 |
> |
<include name="**/*.java"/> |
274 |
|
</fileset> |
275 |
|
<filterchain> |
276 |
|
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
320 |
|
<bootclasspath refid="javac.bootclasspath"/> |
321 |
|
<compilerarg line="${javac.args} ${build.warnings.option}"/> |
322 |
|
<classpath refid="test.classpath"/> |
328 |
– |
<include name="**/*Test.java"/> |
323 |
|
|
324 |
|
</javac> |
325 |
|
</target> |
334 |
|
dir="${build.reports.dir}" |
335 |
|
fork="true"> |
336 |
|
|
337 |
< |
<jvmarg value="-Xbootclasspath/p:${product.jar}"/> |
338 |
< |
|
339 |
< |
<classpath> |
340 |
< |
<!-- <path refid="test.classpath"/> --> |
341 |
< |
<pathelement location="${build.testcases.dir}"/> |
348 |
< |
</classpath> |
337 |
> |
<!-- |
338 |
> |
! This nastiness is so JUnit can test classes we are inserting |
339 |
> |
! into the java.* packages. |
340 |
> |
--> |
341 |
> |
<jvmarg value="-Xbootclasspath/p:${product.jar};${build.testcases.dir};${junit.jar}"/> |
342 |
|
|
343 |
|
<formatter type="xml"/> |
344 |
|
|
345 |
|
<batchtest todir="${build.reports.dir}"> |
346 |
|
<fileset dir="${test.src.dir}"> |
347 |
< |
<include name="**/*Test.java"/> |
347 |
> |
<include name="**/${testcase}Test.java"/> |
348 |
|
</fileset> |
349 |
|
</batchtest> |
350 |
|
|
379 |
|
<!-- FIXME: this test isn't specific enough --> |
380 |
|
<available property="junit.available" |
381 |
|
classname="junit.framework.TestCase"/> |
382 |
< |
<fail message="Need JUnit 1.8 to run tests" unless="junit.available"/> |
382 |
> |
<fail message="Need JUnit 3.8 to run tests" unless="junit.available"/> |
383 |
|
</target> |
384 |
|
|
385 |
|
|