/[cvs]/jsr166/build.xml
ViewVC logotype

Diff of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tim, Mon Oct 7 04:07:37 2002 UTC revision 1.6 by tim, Tue Dec 10 15:02:46 2002 UTC
# Line 2  Line 2 
2    
3    <description>    <description>
4      Build file for JSR-166      Build file for JSR-166
5    
6        Note that junit.jar must be in ${ant.home}/lib for the
7        test target to work. [FIXME: This should be automatically
8        enforced by this build file by failing with a message if
9        junit.jar is not in the right place.]
10    </description>    </description>
11    
12    <!-- Compilation options -->    <!-- Compilation options -->
13    <property name="build.debug"          value="true"/>    <property name="build.debug"          value="true"/>
14    <property name="build.debuglevel"     value="source,lines,vars"/>    <property name="build.debuglevel"     value="source,lines,vars"/>
15    <property name="build.deprecation"    value="false"/>    <property name="build.deprecation"    value="false"/>
16    <property name="build.sourcelevel"    value="1.4"/>    <property name="build.sourcelevel"    value="1.5"/>
17    
18    <!-- Build locations -->    <!-- Build locations -->
19    <property name="build.dir"            location="build"/>    <property name="build.dir"            location="build"/>
# Line 35  Line 40 
40    <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>    <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>
41    
42    <property name="gj.compiler.args"    <property name="gj.compiler.args"
43             value='-J-Xbootclasspath/p:${javac.jar} -bootclasspath ${collect.jar};${rt.jar} -gj'             value='-J-Xbootclasspath/p:${javac.jar} -deprecation -warnunchecked'
44    />    />
45    
46      <path id="gj.compiler.bootclasspath">
47        <pathelement location="${collect.jar}"/>
48        <pathelement location="${rt.jar}"/>
49      </path>
50    
51      <path id="test.classpath">
52        <pathelement location="${product.jar}"/>
53      </path>
54    
55    
56    <target name="compile">    <target name="compile">
57      <mkdir dir="${build.classes.dir}"/>      <mkdir dir="${build.classes.dir}"/>
# Line 49  Line 63 
63             source="${build.sourcelevel}"             source="${build.sourcelevel}"
64               fork="true">               fork="true">
65    
66          <bootclasspath refid="gj.compiler.bootclasspath"/>
67        <compilerarg line="${gj.compiler.args}"/>        <compilerarg line="${gj.compiler.args}"/>
68    
69        <!-- need this because srcdir is basedir! -->        <!-- need this because srcdir is basedir! -->
# Line 69  Line 84 
84    <target name="test" depends="report-tests"/>    <target name="test" depends="report-tests"/>
85    
86    
87    <target name="docs" depends="filter-src">    <target name="docs" depends="clean-docs, filter-src">
88      <delete dir="${build.javadocs.dir}"/>      <delete dir="${build.javadocs.dir}"/>
89      <mkdir dir="${build.javadocs.dir}"/>      <mkdir dir="${build.javadocs.dir}"/>
90      <javadoc destdir="${build.javadocs.dir}"      <javadoc destdir="${build.javadocs.dir}"
# Line 79  Line 94 
94    
95        <tag name="revised" description="Last revised:"/>        <tag name="revised" description="Last revised:"/>
96        <tag name="spec" description="Specified by:"/>        <tag name="spec" description="Specified by:"/>
97          <tag name="editor" description="Last edited by:"/>
98          <tag name="fixme" description="FIX ME:"/>
99        <packageset dir="${build.filter.src.dir}">        <packageset dir="${build.filter.src.dir}">
100          <include name="java/**"/>          <include name="java/**"/>
101        </packageset>        </packageset>
# Line 88  Line 104 
104    </target>    </target>
105    
106    
107    <target name="clean">    <target name="clean" depends="clean-docs">
108      <delete dir="${build.dir}"/>      <delete dir="${build.dir}"/>
109      <delete dir="${build.classes.dir}"/>      <delete dir="${build.classes.dir}"/>
110      <delete dir="${build.lib.dir}"/>      <delete dir="${build.lib.dir}"/>
111      </target>
112    
113    
114      <target name="clean-docs">
115      <delete dir="${build.javadocs.dir}"/>      <delete dir="${build.javadocs.dir}"/>
116    </target>    </target>
117    
# Line 160  Line 180 
180             source="${build.sourcelevel}"             source="${build.sourcelevel}"
181               fork="true">               fork="true">
182    
183          <bootclasspath refid="gj.compiler.bootclasspath"/>
184        <compilerarg line="${gj.compiler.args}"/>        <compilerarg line="${gj.compiler.args}"/>
185          <classpath refid="test.classpath"/>
       <classpath id="test.classpath">  
         <pathelement location="${product.jar}"/>  
         <pathelement location="${junit.jar}"/>  
       </classpath>  
   
186        <include name="**/*Test.java"/>        <include name="**/*Test.java"/>
187    
188      </javac>      </javac>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

dl@cs.oswego.edu
ViewVC Help
Powered by ViewVC 1.1.27