[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.15, Thu Dec 12 23:50:31 2002 UTC revision 1.16, Fri Dec 13 06:34:04 2002 UTC
# Line 27  Line 27 
27    <property name="build.lib.dir"        location="${build.dir}/lib"/>    <property name="build.lib.dir"        location="${build.dir}/lib"/>
28    <property name="build.ant.dir"        location="${build.dir}/ant"/>    <property name="build.ant.dir"        location="${build.dir}/ant"/>
29    <property name="build.javadocs.dir"   location="${build.dir}/javadocs"/>    <property name="build.javadocs.dir"   location="${build.dir}/javadocs"/>
30      <property name="build.stripped.dir"   location="${build.dir}/stripped"/>
31    <property name="build.reports.dir"    location="${build.dir}/reports"/>    <property name="build.reports.dir"    location="${build.dir}/reports"/>
32      <property name="build.doccheck.dir"   location="${build.dir}/doccheck"/>
33    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>
34    
35    <!-- Source locations -->    <!-- Source locations -->
# Line 96  Line 98 
98            description="Runs all tests"/>            description="Runs all tests"/>
99    
100    
101    <target name="checkstyle" depends="init, clean-filtered-src, filter-src">    <target name="checkstyle" depends="filter-src"
102              description="Reports on style errors in Java source">
103      <taskdef resource="checkstyletask.properties"      <taskdef resource="checkstyletask.properties"
104              classpath="${lib.dir}/checkstyle-all-2.4.jar"/>              classpath="${lib.dir}/checkstyle-all-2.4.jar"/>
105    
106      <checkstyle>      <checkstyle>
107          <formatter type="plain"/>  <!-- also available: type="xml" -->
108        <fileset dir="${build.filter.src.dir}" includes="**/*.java"/>        <fileset dir="${build.filter.src.dir}" includes="**/*.java"/>
109      </checkstyle>      </checkstyle>
110    </target>    </target>
111    
112    <target name="docs" depends="init, clean-filtered-src, filter-src"  
113      <target name="doccheck" depends="filter-src"
114              description="Reports on javadoc style errors">
115        <delete dir="${build.doccheck.dir}"/>
116        <mkdir dir="${build.doccheck.dir}"/>
117        <javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck"
118             docletpath="${lib.dir}/doccheck.jar"
119                destdir="${build.doccheck.dir}">
120          <packageset dir="${build.filter.src.dir}">
121            <include name="java/**"/>
122          </packageset>
123        </javadoc>
124      </target>
125    
126    
127      <target name="docs" depends="filter-src"
128            description="Builds javadocs with custom tags to build folder">            description="Builds javadocs with custom tags to build folder">
129      <delete dir="${build.javadocs.dir}"/>      <delete dir="${build.javadocs.dir}"/>
130      <mkdir dir="${build.javadocs.dir}"/>      <mkdir dir="${build.javadocs.dir}"/>
# Line 126  Line 145 
145    </target>    </target>
146    
147    
148    <target name="dist" depends="init, dist-clean, dist-jar, dist-docs"/>    <target name="strip" depends="init">
149        <mkdir dir="${build.stripped.dir}"/>
150        <javac srcdir="${src.dir}"
151              destdir="${build.stripped.dir}"
152                debug="${build.debug}"
153           debuglevel="${build.debuglevel}"
154          deprecation="${build.deprecation}"
155               source="${build.sourcelevel}"
156                 fork="true">
157    
158          <bootclasspath refid="javac.bootclasspath"/>
159          <compilerarg line="${javac.args} ${build.warnings.option} -s"/>
160    
161          <!-- need this because srcdir is basedir! -->
162          <include name="java/**/*.java"/>
163    
164        </javac>
165      </target>
166    
167    
168      <target name="dist" depends="init, dist-clean, dist-jar, dist-docs"
169              description="Puts all distributable products in single hierarchy"/>
170    
171    
172    <target name="clean"    <target name="clean"
# Line 165  Line 205 
205      <property name="build.warnings.option" value="-warnunchecked"/>      <property name="build.warnings.option" value="-warnunchecked"/>
206    </target>    </target>
207    
208    
209    <target name="set-warnings-unless" unless="build.warnings">    <target name="set-warnings-unless" unless="build.warnings">
210      <property name="build.warnings.option" value=""/>      <property name="build.warnings.option" value=""/>
211    </target>    </target>
212    
213    
214    <target name="init" depends="set-warnings-if, set-warnings-unless">    <target name="init" depends="set-warnings-if, set-warnings-unless">
215      <!-- Version is kept in a separate file -->      <!-- Version is kept in a separate file -->
216      <loadfile property="version" srcFile="version.properties"/>      <loadfile property="version" srcFile="version.properties"/>
# Line 176  Line 218 
218    </target>    </target>
219    
220    
   <target name="clean-filtered-src">  
     <delete dir="${build.filter.src.dir}"/>  
   </target>  
   
   
221    <target name="dist-jar" depends="clean, jar">    <target name="dist-jar" depends="clean, jar">
222      <copy file="${product.jar}" todir="${dist.dir}"/>      <copy file="${product.jar}" todir="${dist.dir}"/>
223    </target>    </target>
224    
225    
226    <target name="dist-docs" depends="clean-filtered-src, filter-src"    <target name="dist-docs" depends="filter-src"
227            description="Builds javadocs without custom tags to dist folder">            description="Builds javadocs without custom tags to dist folder">
228      <delete dir="${dist.javadocs.dir}"/>      <delete dir="${dist.javadocs.dir}"/>
229      <mkdir dir="${dist.javadocs.dir}"/>      <mkdir dir="${dist.javadocs.dir}"/>
# Line 203  Line 240 
240    </target>    </target>
241    
242    
243    <target name="compile-ant-filter">    <target name="compile-ant-filter" depends="init">
244      <mkdir dir="${build.ant.dir}"/>      <mkdir dir="${build.ant.dir}"/>
245      <javac srcdir="${ant.src.dir}"      <javac srcdir="${ant.src.dir}"
246            destdir="${build.ant.dir}"            destdir="${build.ant.dir}"

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8