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

Diff of /jsr166/build.xml

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

revision 1.2, Tue Oct 8 14:43:34 2002 UTC revision 1.10, Wed Dec 11 05:16:42 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 26  Line 31 
31    <property name="ant.src.dir"          location="${basedir}/etc/ant"/>    <property name="ant.src.dir"          location="${basedir}/etc/ant"/>
32    <property name="stylesheet.dir"       location="${basedir}/etc/xsl"/>    <property name="stylesheet.dir"       location="${basedir}/etc/xsl"/>
33    <property name="lib.dir"              location="${basedir}/lib"/>    <property name="lib.dir"              location="${basedir}/lib"/>
34      <property name="dist.dir"             location="${basedir}/dist"/>
35    
36      <!-- Distribution locations -->
37      <property name="dist.javadocs.dir"    location="${dist.dir}/docs"/>
38    
39    <!-- Jar locations -->    <!-- Jar locations -->
40    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>
# Line 35  Line 44 
44    <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>    <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>
45    
46    <property name="gj.compiler.args"    <property name="gj.compiler.args"
47             value='-J-Xbootclasspath/p:${javac.jar} -gj'             value='-J-Xbootclasspath/p:${javac.jar} -deprecation -warnunchecked'
48    />    />
49    
50    <path id="gj.compiler.bootclasspath">    <path id="gj.compiler.bootclasspath">
# Line 45  Line 54 
54    
55    <path id="test.classpath">    <path id="test.classpath">
56      <pathelement location="${product.jar}"/>      <pathelement location="${product.jar}"/>
     <pathelement location="${junit.jar}"/>  
57    </path>    </path>
58    
59    
# Line 80  Line 88 
88    <target name="test" depends="report-tests"/>    <target name="test" depends="report-tests"/>
89    
90    
91    <target name="docs" depends="filter-src">    <target name="docs" depends="clean-filtered-src, filter-src"
92              description="Builds javadocs with custom tags to build folder">
93      <delete dir="${build.javadocs.dir}"/>      <delete dir="${build.javadocs.dir}"/>
94      <mkdir dir="${build.javadocs.dir}"/>      <mkdir dir="${build.javadocs.dir}"/>
95      <javadoc destdir="${build.javadocs.dir}"      <javadoc destdir="${build.javadocs.dir}"
# Line 90  Line 99 
99    
100        <tag name="revised" description="Last revised:"/>        <tag name="revised" description="Last revised:"/>
101        <tag name="spec" description="Specified by:"/>        <tag name="spec" description="Specified by:"/>
102          <tag name="editor" description="Last edited by:"/>
103          <tag name="fixme" description="FIX ME:"/>
104          <packageset dir="${build.filter.src.dir}">
105            <include name="java/**"/>
106          </packageset>
107    
108        </javadoc>
109      </target>
110    
111    
112      <target name="dist-docs" depends="clean-filtered-src, filter-src"
113              description="Builds javadocs without custom tags to dist folder">
114        <delete dir="${dist.javadocs.dir}"/>
115        <mkdir dir="${dist.javadocs.dir}"/>
116        <javadoc destdir="${dist.javadocs.dir}"
117                    link="http://java.sun.com/j2se/1.4.1/docs/api"
118                overview="${src.dir}/intro.html"
119                  source="${build.sourcelevel}">
120    
121        <packageset dir="${build.filter.src.dir}">        <packageset dir="${build.filter.src.dir}">
122          <include name="java/**"/>          <include name="java/**"/>
# Line 99  Line 126 
126    </target>    </target>
127    
128    
129      <target name="dist-jar" depends="clean, jar">
130        <copy file="${product.jar}" todir="${dist.dir}"/>
131      </target>
132    
133    
134      <target name="dist" depends="dist-clean, dist-jar, dist-docs"/>
135    
136    
137    <target name="clean">    <target name="clean">
138      <delete dir="${build.dir}"/>      <delete dir="${build.dir}"/>
139      <delete dir="${build.classes.dir}"/>      <delete dir="${build.classes.dir}"/>
140      <delete dir="${build.lib.dir}"/>      <delete dir="${build.lib.dir}"/>
141      <delete dir="${build.javadocs.dir}"/>    </target>
142    
143    
144      <target name="dist-clean" depends="clean">
145        <delete dir="${dist.dir}"/>
146      </target>
147    
148    
149      <target name="clean-filtered-src">
150        <delete dir="${build.filter.src.dir}"/>
151    </target>    </target>
152    
153    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.10

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8