ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/build.xml
Revision: 1.62
Committed: Wed Dec 10 01:51:11 2003 UTC (20 years, 4 months ago) by tim
Content type: text/xml
Branch: MAIN
CVS Tags: JSR166_DEC9_POST_ES_SUBMIT
Changes since 1.61: +30 -1 lines
Log Message:
Move and rename static Executors.execute/invoke to ExecutorService.submit/invoke,
providing implementations in AbstractExecutorService (which TPE extends).

File Contents

# User Rev Content
1 tim 1.18 <project name="jsr166" default="usage">
2 tim 1.1
3     <description>
4 tim 1.29 ------------------------------------------------------------------------------
5     Build file for JSR-166
6 tim 1.18
7 tim 1.29 Usage: ant [target]
8    
9     User-specific settings are read from user.properties.
10 tim 1.32 See user.properties.sample for an explanation of some useful settings.
11 tim 1.29 ------------------------------------------------------------------------------
12 tim 1.18 </description>
13 tim 1.11
14 tim 1.29 <target name="usage" description="Advises user to run with -projecthelp">
15     <echo>Run "ant -projecthelp" for full usage information.</echo>
16     </target>
17 tim 1.3
18 tim 1.11
19 tim 1.27 <!-- User-specific settings -->
20 tim 1.23 <property file="user.properties"/>
21 tim 1.27
22 tim 1.1
23     <!-- Compilation options -->
24 tim 1.11 <property name="build.sourcelevel" value="1.5"/>
25 tim 1.1 <property name="build.debug" value="true"/>
26     <property name="build.debuglevel" value="source,lines,vars"/>
27 tim 1.13 <property name="build.deprecation" value="false"/>
28 tim 1.1
29     <!-- Build locations -->
30     <property name="build.dir" location="build"/>
31     <property name="build.classes.dir" location="${build.dir}/classes"/>
32     <property name="build.testcases.dir" location="${build.dir}/testcases"/>
33     <property name="build.lib.dir" location="${build.dir}/lib"/>
34     <property name="build.ant.dir" location="${build.dir}/ant"/>
35 tim 1.9 <property name="build.javadocs.dir" location="${build.dir}/javadocs"/>
36 tim 1.1 <property name="build.reports.dir" location="${build.dir}/reports"/>
37 tim 1.59 <property name="build.checkstyle.dir" location="${build.dir}/checkstyle"/>
38 tim 1.16 <property name="build.doccheck.dir" location="${build.dir}/doccheck"/>
39 tim 1.1 <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>
40 tim 1.58 <property name="build.dc-filter.dir" location="${build.dir}/filterdocchk"/>
41 tim 1.1
42     <!-- Source locations -->
43 tim 1.22 <property name="src.dir" location="${basedir}/src/main"/>
44     <property name="test.src.dir" location="${basedir}/src/test"/>
45 tim 1.60 <property name="tck.src.dir" location="${test.src.dir}/tck"/>
46 tim 1.62 <property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/>
47 tim 1.1 <property name="ant.src.dir" location="${basedir}/etc/ant"/>
48     <property name="stylesheet.dir" location="${basedir}/etc/xsl"/>
49     <property name="lib.dir" location="${basedir}/lib"/>
50 tim 1.9 <property name="dist.dir" location="${basedir}/dist"/>
51    
52     <!-- Distribution locations -->
53     <property name="dist.javadocs.dir" location="${dist.dir}/docs"/>
54 tim 1.1
55     <!-- Jar locations -->
56     <property name="product.jar" location="${build.lib.dir}/jsr166.jar"/>
57     <property name="junit.jar" location="${lib.dir}/junit.jar"/>
58 tim 1.59
59     <!-- Bootclasspath argument -->
60     <property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/>
61 tim 1.27
62 tim 1.59 <!-- Test classpath -->
63     <path id="test.classpath">
64     <pathelement location="${build.testcases.dir}"/>
65     <pathelement location="${junit.jar}"/>
66     </path>
67 tim 1.28
68    
69    
70 tim 1.59 <!-- Main targets -->
71 tim 1.28
72 tim 1.11
73 tim 1.28 <target name="compile"
74 tim 1.60 depends="init, configure-compiler"
75 tim 1.27 description="Compiles main sources to build folder">
76    
77 tim 1.1 <mkdir dir="${build.classes.dir}"/>
78 tim 1.27
79 tim 1.60 <javac srcdir="${src.dir}"
80 tim 1.1 destdir="${build.classes.dir}"
81     debug="${build.debug}"
82     debuglevel="${build.debuglevel}"
83     deprecation="${build.deprecation}"
84     source="${build.sourcelevel}"
85     fork="true">
86    
87 tim 1.58 <compilerarg line="${build.args}"/>
88 tim 1.1
89     </javac>
90 tim 1.27
91 tim 1.1 </target>
92    
93    
94 tim 1.59
95 tim 1.28 <target name="jar"
96 tim 1.59 depends="compile"
97     description="Builds library jar from compiled sources">
98    
99     <mkdir dir="${build.lib.dir}"/>
100    
101     <jar destfile="${product.jar}">
102     <fileset dir="${build.classes.dir}"/>
103     </jar>
104    
105     </target>
106    
107 tim 1.1
108    
109 tim 1.28 <target name="test"
110 tim 1.32 depends="init, configure-tests, report-tests"
111 tim 1.29 description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
112 tim 1.1
113    
114 tim 1.59
115     <target name="docs"
116     description="Builds javadocs with custom tags to build folder">
117    
118     <delete dir="${build.javadocs.dir}"/>
119     <mkdir dir="${build.javadocs.dir}"/>
120    
121     <javadoc destdir="${build.javadocs.dir}"
122     link="http://java.sun.com/j2se/1.4.1/docs/api"
123     overview="${src.dir}/intro.html"
124     source="${build.sourcelevel}">
125    
126     <tag name="revised" description="Last revised:"/>
127     <tag name="spec" description="Specified by:"/>
128    
129     <packageset dir="${src.dir}"/>
130    
131     </javadoc>
132    
133     </target>
134    
135    
136    
137 tim 1.60 <target name="doccheck"
138     depends="filter-doccheck"
139     description="Reports on javadoc style errors">
140    
141     <delete dir="${build.doccheck.dir}"/>
142     <mkdir dir="${build.doccheck.dir}"/>
143    
144     <javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck"
145     docletpath="${lib.dir}/doccheck.jar"
146     destdir="${build.doccheck.dir}">
147     <packageset dir="${build.dc-filter.dir}"/>
148     </javadoc>
149    
150     <echo>DocCheck output is in ${build.doccheck.dir}</echo>
151    
152     </target>
153    
154    
155    
156 tim 1.28 <target name="checkstyle"
157     depends="filter-src"
158 tim 1.18 description="Reports on style errors in Java source (verbose, mostly chaff)">
159 tim 1.27
160 tim 1.15 <taskdef resource="checkstyletask.properties"
161 tim 1.58 classpath="${lib.dir}/checkstyle-all-3.1.jar"/>
162 tim 1.15
163 tim 1.58 <mkdir dir="${build.checkstyle.dir}"/>
164    
165     <checkstyle config="etc/checkstyle/sun_checks.xml"
166     failOnViolation="false">
167     <formatter type="xml" toFile="${build.checkstyle.dir}/checkstyle-report.xml"/>
168 tim 1.15 <fileset dir="${build.filter.src.dir}" includes="**/*.java"/>
169     </checkstyle>
170 tim 1.58
171     <style in="${build.checkstyle.dir}/checkstyle-report.xml"
172     out="${build.checkstyle.dir}/checkstyle-report.html"
173     style="${stylesheet.dir}/checkstyle-frames.xsl"/>
174 tim 1.27
175 tim 1.15 </target>
176    
177 tim 1.59
178 tim 1.8
179 tim 1.28 <target name="dist"
180     depends="init, dist-clean, dist-jar, dist-docs"
181 tim 1.16 description="Puts all distributable products in single hierarchy"/>
182 tim 1.1
183 tim 1.58
184 tim 1.59
185 tim 1.42 <target name="release"
186     depends="dist"
187     description="Puts entire CVS tree, plus distribution productions, in a jar">
188    
189     <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
190    
191     <jar basedir="${basedir}" destfile="${release.jar}">
192 tim 1.58 <!-- <exclude name="build/**"/> -->
193 tim 1.42 <exclude name="${release.jar}"/>
194     <exclude name="user.properties"/>
195     <exclude name="etc/notes/**"/>
196 tim 1.58 <exclude name="src/emulation/**"/>
197 tim 1.44 <exclude name="**/SyntaxTest.java"/>
198 tim 1.58 <exclude name="**/SuperfluousAbstract.java"/>
199 tim 1.42 </jar>
200    
201     </target>
202 tim 1.1
203 tim 1.59
204    
205 tim 1.11 <target name="clean"
206     description="Removes all build products">
207 tim 1.27
208 tim 1.11 <delete dir="${build.dir}"/>
209     <delete dir="${build.classes.dir}"/>
210     <delete dir="${build.lib.dir}"/>
211 tim 1.27
212 tim 1.1 </target>
213    
214    
215 tim 1.59
216 tim 1.11 <target name="dist-clean"
217     description="Removes all build and distribution products">
218 tim 1.27
219 tim 1.11 <delete dir="${dist.dir}"/>
220 tim 1.27
221 tim 1.9 </target>
222 tim 1.10
223    
224 tim 1.59
225 tim 1.28 <target name="dist-docs"
226     description="Builds javadocs without custom tags to dist folder">
227    
228     <delete dir="${dist.javadocs.dir}"/>
229     <mkdir dir="${dist.javadocs.dir}"/>
230    
231     <javadoc destdir="${dist.javadocs.dir}"
232 tim 1.59 link="http://java.sun.com/j2se/1.4.2/docs/api"
233 tim 1.28 overview="${src.dir}/intro.html"
234 tim 1.59 source="${build.sourcelevel}">
235 tim 1.28
236 tim 1.59 <packageset dir="${src.dir}"/>
237 tim 1.14
238 tim 1.28 </javadoc>
239 tim 1.14
240     </target>
241    
242    
243 tim 1.28
244 tim 1.11 <!-- Internal targets -->
245 tim 1.9
246 tim 1.16
247 tim 1.32 <target name="init">
248 tim 1.27
249 tim 1.11 <!-- Version is kept in a separate file -->
250     <loadfile property="version" srcFile="version.properties"/>
251     <echo>Building JSR-166 version ${version}</echo>
252 tim 1.54 <echo>java.home is ${java.home}</echo>
253 tim 1.27
254     </target>
255 tim 1.61
256    
257 tim 1.28 <target name="dist-jar"
258     depends="clean, jar">
259 tim 1.27
260 tim 1.11 <copy file="${product.jar}" todir="${dist.dir}"/>
261 tim 1.27
262 tim 1.11 </target>
263    
264    
265 tim 1.28 <target name="compile-ant-filter"
266     depends="init">
267 tim 1.27
268 tim 1.1 <mkdir dir="${build.ant.dir}"/>
269 tim 1.27
270 tim 1.1 <javac srcdir="${ant.src.dir}"
271     destdir="${build.ant.dir}"
272     source="1.4"
273     />
274 tim 1.27
275 tim 1.1 </target>
276    
277    
278 tim 1.28 <target name="filter-src"
279     depends="compile-ant-filter">
280 tim 1.27
281 tim 1.1 <mkdir dir="${build.filter.src.dir}"/>
282 tim 1.27
283 tim 1.1 <copy todir="${build.filter.src.dir}">
284     <fileset dir="${src.dir}">
285 tim 1.31 <include name="**/*.html"/>
286     </fileset>
287     </copy>
288    
289     <copy todir="${build.filter.src.dir}">
290     <fileset dir="${src.dir}">
291     <exclude name="**/*.html"/>
292 tim 1.59 <!-- Files excluded from dist-docs -->
293     <exclude name="java/util/Random.*"/>
294     <exclude name="sun/misc/Unsafe.*"/>
295 tim 1.1 </fileset>
296 tim 1.59 <!--
297 tim 1.1 <filterchain>
298 tim 1.59 -->
299 tim 1.36
300     <!--
301     # This filter gets rid of angle-bracketed type parameters
302     # so that javadoc can run on the result. The following
303     # heuristic seems to work:
304     #
305     # For all lines not starting with space(s)-asterisk-space(s),
306     # replace <something> with a space, where there may be more
307     # than one right angle bracket at the end, and "something"
308     # must not contain parens or pipes. (This may need some
309     # tweaking.)
310     -->
311    
312 tim 1.59 <!--
313 tim 1.1 <filterreader classname="jsr166.ant.filters.ReplaceFilter"
314     classpath="${build.ant.dir}">
315     <param name="notmatching" value="^\s+\*\s.*$"/>
316 tim 1.36 <param name="pattern" value="&lt;[^|>()]+?>+"/>
317 tim 1.1 <param name="replacement" value=" "/>
318     </filterreader>
319 tim 1.59 -->
320 tim 1.36
321 tim 1.59 <!--
322 tim 1.47 </filterchain>
323 tim 1.59 -->
324 tim 1.47 </copy>
325    
326     </target>
327    
328    
329     <target name="filter-doccheck"
330     depends="filter-src">
331 tim 1.36
332 tim 1.58 <mkdir dir="${build.dc-filter.dir}"/>
333 tim 1.36
334 tim 1.58 <copy todir="${build.dc-filter.dir}">
335 tim 1.47 <fileset dir="${build.filter.src.dir}">
336     <include name="**/*.html"/>
337     </fileset>
338     </copy>
339    
340     <property name="generic.declarations"
341     value="/** Fake type parameter. */ public interface E {} /** Fake type parameter. */ public interface T {} /** Fake type parameter. */ public interface K {} /** Fake type parameter. */ public interface V {}"
342     />
343    
344 tim 1.58 <copy todir="${build.dc-filter.dir}">
345 tim 1.47 <fileset dir="${build.filter.src.dir}">
346     <exclude name="**/*.html"/>
347     </fileset>
348     <filterchain>
349 tim 1.36 <!--
350 tim 1.47 # These two filters try to make the source look like
351 tim 1.36 # something that doccheck can process. The first removes
352     # -source 1.4 assertions and the second adds in a bunch
353     # of single letter public nested marker interfaces so that
354     # the generic type parameters are recognized.
355     -->
356    
357     <filterreader classname="jsr166.ant.filters.ReplaceFilter"
358     classpath="${build.ant.dir}">
359     <param name="matching" value="^\s*assert[\s ].*$"/>
360     <param name="pattern" value="assert"/>
361     <param name="replacement" value="//assert"/>
362     </filterreader>
363    
364     <filterreader classname="jsr166.ant.filters.ReplaceFilter"
365     classpath="${build.ant.dir}">
366 tim 1.47 <param name="matching" value="^([^*]*(class|interface|implements) .*|)\{.*$"/>
367 tim 1.36 <param name="pattern" value="$"/>
368     <param name="replacement" value=" ${generic.declarations}"/>
369     </filterreader>
370    
371 tim 1.1 </filterchain>
372     </copy>
373 tim 1.27
374 tim 1.1 </target>
375    
376    
377 tim 1.28 <target name="compile-tests"
378     depends="jar">
379 tim 1.27
380 tim 1.1 <mkdir dir="${build.testcases.dir}"/>
381 tim 1.37
382 tim 1.60 <javac srcdir="${tck.src.dir}"
383     destdir="${build.testcases.dir}"
384     debug="${build.debug}"
385     debuglevel="${build.debuglevel}"
386     deprecation="${build.deprecation}"
387     source="${build.sourcelevel}"
388     fork="true">
389    
390     <compilerarg value="${bootclasspath.args}"/>
391     <compilerarg line="${build.args}"/>
392    
393     <classpath refid="test.classpath"/>
394    
395     </javac>
396    
397     <javac srcdir="${test.src.dir}"
398 tim 1.1 destdir="${build.testcases.dir}"
399     debug="${build.debug}"
400     debuglevel="${build.debuglevel}"
401     deprecation="${build.deprecation}"
402     source="${build.sourcelevel}"
403     fork="true">
404    
405 tim 1.60 <include name="jsr166/test/**"/>
406    
407 tim 1.59 <compilerarg value="${bootclasspath.args}"/>
408 tim 1.57 <compilerarg line="${build.args}"/>
409 tim 1.59
410 tim 1.57 <classpath refid="test.classpath"/>
411 tim 1.1
412     </javac>
413 tim 1.27
414 tim 1.62 <!--
415     <javac srcdir="${jtreg.src.dir}"
416     destdir="${build.testcases.dir}"
417     debug="${build.debug}"
418     debuglevel="${build.debuglevel}"
419     deprecation="${build.deprecation}"
420     source="${build.sourcelevel}"
421     fork="true">
422    
423     <compilerarg value="${bootclasspath.args}"/>
424     <compilerarg line="${build.args}"/>
425    
426     <classpath refid="test.classpath"/>
427    
428     </javac>
429     -->
430    
431 tim 1.1 </target>
432 tim 1.11
433 tim 1.1
434 tim 1.28 <target name="run-tests"
435     depends="compile-tests">
436 tim 1.27
437     <!-- May be overridden by user.properties -->
438     <property name="testcase" value="*"/>
439    
440 tim 1.1 <mkdir dir="${build.reports.dir}"/>
441 tim 1.27
442 tim 1.1 <junit printsummary="true"
443     showoutput="true"
444     errorProperty="junit.failed"
445     failureProperty="junit.failed"
446 tim 1.12 dir="${build.reports.dir}"
447     fork="true">
448    
449 tim 1.59 <jvmarg value="${bootclasspath.args}"/>
450    
451     <classpath refid="test.classpath"/>
452 tim 1.1
453     <formatter type="xml"/>
454    
455 tim 1.62 <batchtest todir="${build.reports.dir}" unless="no.test.tck">
456 tim 1.60 <fileset dir="${tck.src.dir}">
457     <include name="**/${testcase}Test.java"/>
458     </fileset>
459 tim 1.62 </batchtest>
460    
461     <batchtest todir="${build.reports.dir}" if="do.test.old">
462 tim 1.60 <fileset dir="${test.src.dir}">
463     <include name="jsr166/test/**/${testcase}Test.java"/>
464 tim 1.1 </fileset>
465     </batchtest>
466 tim 1.62
467     <!--
468     <batchtest todir="${build.reports.dir}" if="do.test.jtreg">
469     <fileset dir="${jtreg.src.dir}">
470     <include name="**/${testcase}Test.java"/>
471     </fileset>
472     </batchtest>
473     -->
474 tim 1.1
475     </junit>
476 tim 1.27
477 tim 1.1 </target>
478    
479    
480 tim 1.28 <target name="report-tests"
481     depends="run-tests">
482    
483 tim 1.54 <!-- Sets junit.report.format to frames if redirection is present,
484 tim 1.1 otherwise sets it to noframes. -->
485     <available property="junit.report.format"
486     value="frames"
487     classname="org.apache.xalan.lib.Redirect"
488     />
489     <property name="junit.report.format" value="noframes"/>
490    
491     <junitreport todir="${build.reports.dir}">
492     <fileset dir="${build.reports.dir}">
493     <include name="TEST-*.xml"/>
494     </fileset>
495     <report styledir="${stylesheet.dir}"
496     format="${junit.report.format}"
497     todir="${build.reports.dir}"
498     />
499     </junitreport>
500    
501     <fail message="Test Cases Failed" if="junit.failed"/>
502 tim 1.28
503 tim 1.18 </target>
504    
505    
506 tim 1.32 <target name="configure-compiler">
507 tim 1.54
508     <property name="unchecked.option" value="-Xlint:unchecked"/>
509    
510     <condition property="warnunchecked.arg" value="${unchecked.option}">
511 tim 1.57 <istrue value="${build.warnunchecked}"/>
512 tim 1.32 </condition>
513    
514 tim 1.37 <property name="warnunchecked.arg" value=""/>
515 tim 1.34
516 tim 1.32
517     <!-- Common options in javac invocations -->
518 tim 1.57 <property name="build.args" value="${warnunchecked.arg}"/>
519 tim 1.33
520     </target>
521    
522    
523 tim 1.37 <target name="configure-tests"
524     depends="configure-compiler">
525 tim 1.28
526     <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
527 tim 1.18 <available property="junit.available"
528 tim 1.28 classname="junit.framework.Protectable"/>
529    
530 tim 1.54 <!-- Xalan -->
531     <available property="xalan.available"
532     classname="org.apache.xalan.Version"/>
533    
534 tim 1.59
535     <!-- Ant 1.6beta and later don't need or want this check -->
536     <!--
537     <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
538     unless="junit.available"/>
539    
540 tim 1.54 <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
541     unless="xalan.available"/>
542 tim 1.59 -->
543 tim 1.30
544 tim 1.28 </target>
545    
546    
547    
548     <!-- Anthill targets -->
549    
550 tim 1.54 <target name="anthill-build">
551 tim 1.55
552     <!-- Override this in user.properties -->
553     <property name="tiger.home" location="e:/j2sdk1.5.0"/>
554    
555 tim 1.54 <exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java">
556     <arg value="-Xmx256000000"/>
557     <!-- classpath of new JVM -->
558     <arg value="-classpath"/> <arg path="${java.class.path}"/>
559     <!-- location of Ant home directory -->
560     <arg value="-Dant.home=${ant.home}"/>
561     <!-- the Ant main class -->
562     <arg value="org.apache.tools.ant.Main"/>
563     <!-- The build file -->
564     <arg value="-buildfile"/> <arg value="build.xml"/>
565     <!-- the target to build on the new Ant instance -->
566     <arg value="-DJAVA_HOME=${tiger.home}"/>
567     <arg value="do-anthill-build"/>
568     </exec>
569     </target>
570    
571     <target name="do-anthill-build"
572 tim 1.28 depends="jar, test, docs, dist-docs"/>
573    
574     <target name="anthill-publish">
575    
576     <copy todir="${deployDir}/docs/private">
577     <fileset dir="${build.javadocs.dir}"/>
578     </copy>
579    
580     <copy todir="${deployDir}/docs/public">
581     <fileset dir="${dist.javadocs.dir}"/>
582     </copy>
583    
584     <copy tofile="${deployDir}/index.html"
585     file="${basedir}/etc/anthill-index.html"/>
586    
587     <copy todir="${deployDir}/notes">
588     <fileset dir="${basedir}/etc/notes"/>
589     </copy>
590    
591 tim 1.43 </target>
592    
593    
594 tim 1.61 <!-- Standalone sample program -->
595    
596     <target name="sample" depends="jar">
597 tim 1.59
598     <mkdir dir="${build.testcases.dir}"/>
599    
600     <javac srcdir="${test.src.dir}"
601     destdir="${build.testcases.dir}"
602     debug="${build.debug}"
603     debuglevel="${build.debuglevel}"
604     deprecation="${build.deprecation}"
605     source="${build.sourcelevel}"
606     fork="true">
607    
608     <compilerarg value="${bootclasspath.args}"/>
609     <compilerarg line="${build.args}"/>
610    
611     <classpath refid="test.classpath"/>
612    
613 tim 1.61 <include name="jsr166/test/Sample.java"/>
614 tim 1.59
615     </javac>
616    
617    
618 tim 1.61 <java classname="jsr166.test.Sample" fork="true">
619 tim 1.59 <jvmarg value="${bootclasspath.args}"/>
620     <classpath refid="test.classpath"/>
621 tim 1.43 </java>
622 tim 1.1 </target>
623 tim 1.61
624    
625    
626     <!-- Backward compatibility, work in progress (some files not checked in) -->
627 tim 1.1
628 tim 1.59
629    
630     <property name="pretiger.src.dir" location="${build.dir}/pretiger/src"/>
631     <property name="build.pretiger.dir" location="${build.dir}/pretiger/classes"/>
632     <property name="pretiger.jar" location="${build.lib.dir}/jsr166-pretiger.jar"/>
633     <property name="pretiger.sourcelevel" value="1.4"/>
634    
635     <target name="defang"
636     depends="init"
637     description="Generates pre-Tiger compatible source">
638    
639     <delete dir="${pretiger.src.dir}"/>
640     <mkdir dir="${pretiger.src.dir}"/>
641    
642     <exec executable="perl">
643     <arg file="etc/defang.pl"/>
644     <!-- <arg value="-v"/> -->
645     <arg value="-s"/> <arg file="${src.dir}"/>
646     <arg value="-t"/> <arg file="${pretiger.src.dir}"/>
647     </exec>
648    
649     </target>
650    
651     <target name="compile-pretiger"
652     depends="init, configure-compiler, defang"
653     description="Compiles pre-Tiger sources to build folder">
654    
655     <mkdir dir="${build.pretiger.dir}"/>
656    
657     <javac srcdir="${pretiger.src.dir}"
658     destdir="${build.pretiger.dir}"
659     debug="${build.debug}"
660     debuglevel="${build.debuglevel}"
661     deprecation="${build.deprecation}"
662     source="${pretiger.sourcelevel}"
663     fork="true">
664    
665     <compilerarg line="${build.args}"/>
666     <exclude name="**/Thread.java"/>
667    
668     </javac>
669    
670     </target>
671    
672     <target name="pretiger" depends="compile-pretiger">
673    
674     <mkdir dir="${build.lib.dir}"/>
675    
676     <jar destfile="${pretiger.jar}">
677     <fileset dir="${build.pretiger.dir}">
678     </fileset>
679     </jar>
680    
681     </target>
682 tim 1.1
683     </project>