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

Diff of /jsr166/build.xml

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

revision 1.44 by tim, Thu Jun 26 11:55:50 2003 UTC revision 1.50 by tim, Tue Aug 5 04:03:38 2003 UTC
# Line 39  Line 39 
39    <property name="build.reports.dir"    location="${build.dir}/reports"/>    <property name="build.reports.dir"    location="${build.dir}/reports"/>
40    <property name="build.doccheck.dir"   location="${build.dir}/doccheck"/>    <property name="build.doccheck.dir"   location="${build.dir}/doccheck"/>
41    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>
42      <property name="build.filter.doccheck.dir" location="${build.dir}/filterdocchk"/>
43    
44    <!-- Source locations -->    <!-- Source locations -->
45    <property name="src.dir"              location="${basedir}/src/main"/>    <property name="src.dir"              location="${basedir}/src/main"/>
# Line 56  Line 57 
57    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>
58    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>
59    <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>    <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>
60      <property name="sinjdoc.jar"          location="${lib.dir}/sinjdoc.jar"/>
61    
62    
63    <!-- Files excluded from dist-docs and emulation jar -->    <!-- Files excluded from dist-docs and emulation jar -->
# Line 71  Line 72 
72      <exclude name="java/util/concurrent/atomic/AtomicInteger*"/>      <exclude name="java/util/concurrent/atomic/AtomicInteger*"/>
73      <exclude name="java/util/concurrent/atomic/AtomicLong*"/>      <exclude name="java/util/concurrent/atomic/AtomicLong*"/>
74      <exclude name="java/util/concurrent/atomic/AtomicReference*"/>      <exclude name="java/util/concurrent/atomic/AtomicReference*"/>
75        <exclude name="java/util/concurrent/locks/LockSupport*"/>
76        <exclude name="java/util/concurrent/locks/ReentrantLock*"/>
77    </patternset>    </patternset>
78    
79    
# Line 132  Line 135 
135    
136    
137    <target name="doccheck"    <target name="doccheck"
138            depends="filter-src"            depends="filter-doccheck"
139            description="Reports on javadoc style errors (not working yet)">            description="Reports on javadoc style errors">
140    
141      <delete dir="${build.doccheck.dir}"/>      <delete dir="${build.doccheck.dir}"/>
142      <mkdir dir="${build.doccheck.dir}"/>      <mkdir dir="${build.doccheck.dir}"/>
# Line 141  Line 144 
144      <javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck"      <javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck"
145           docletpath="${lib.dir}/doccheck.jar"           docletpath="${lib.dir}/doccheck.jar"
146              destdir="${build.doccheck.dir}">              destdir="${build.doccheck.dir}">
147        <packageset dir="${build.filter.src.dir}"/>        <packageset dir="${build.filter.doccheck.dir}"/>
148      </javadoc>      </javadoc>
149    
150        <echo>DocCheck output is in ${build.doccheck.dir}</echo>
151    
152    </target>    </target>
153    
154    
# Line 171  Line 176 
176    </target>    </target>
177    
178    
179      <target name="sinjdocs"
180              depends="configure-tests"
181              description="Builds javadocs with custom tags to build folder">
182    
183        <delete dir="${build.javadocs.dir}"/>
184        <mkdir dir="${build.javadocs.dir}"/>
185    
186        <java classname="net.cscott.sinjdoc.Main" fork="true">
187    
188          <jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/>
189    
190          <classpath>
191            <pathelement location="${sinjdoc.jar}"/>
192            <path refid="test.classpath"/>
193          </classpath>
194    
195          <!-- <arg value="-link"/>       <arg value="http://java.sun.com/j2se/1.4.1/docs/api"/> -->
196    
197          <arg value="-d"/>          <arg value="${build.javadocs.dir}"/>
198          <arg value="-sourcepath"/> <arg value="${src.dir}"/>
199          <arg value="-overview"/>   <arg value="${src.dir}/intro.html"/>
200          <arg value="-source"/>     <arg value="1.5"/>
201          <arg value="-verbose"/>
202          <arg value="java.util"/>
203    
204          <!--
205          <arg value="-help"/>
206          -->
207    
208        </java>
209    
210      </target>
211    
212    
213    <target name="strip"    <target name="strip"
214            depends="init, configure-compiler"            depends="init, configure-compiler"
215            description="Strip generics from java source (not working yet)">            description="Strip generics from java source (not working yet)">
# Line 206  Line 245 
245            depends="dist"            depends="dist"
246            description="Puts entire CVS tree, plus distribution productions, in a jar">            description="Puts entire CVS tree, plus distribution productions, in a jar">
247    
248    <!--
249        #keep build dir? - dl
250      <delete dir="${build.dir}"/>      <delete dir="${build.dir}"/>
251    -->
252      <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>      <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
253    
254      <jar basedir="${basedir}" destfile="${release.jar}">      <jar basedir="${basedir}" destfile="${release.jar}">
# Line 358  Line 399 
399        </fileset>        </fileset>
400      </copy>      </copy>
401    
     <!-- Not needed now, used for doccheck filtering:  
     <property name="generic.declarations"  
              value="public interface E {} public interface T {} public interface K {} public interface V {}"  
     />  
     -->  
   
402      <copy todir="${build.filter.src.dir}">      <copy todir="${build.filter.src.dir}">
403        <fileset dir="${src.dir}">        <fileset dir="${src.dir}">
404          <exclude name="**/*.html"/>          <exclude name="**/*.html"/>
# Line 403  Line 438 
438            <param name="pattern"     value="^//@"/>            <param name="pattern"     value="^//@"/>
439            <param name="replacement" value=""/>            <param name="replacement" value=""/>
440          </filterreader>          </filterreader>
441          </filterchain>
442        </copy>
443    
444      </target>
445    
446    
447    
448    
449      <target name="filter-doccheck"
450              depends="filter-src">
451    
452        <mkdir dir="${build.filter.doccheck.dir}"/>
453    
454        <copy todir="${build.filter.doccheck.dir}">
455          <fileset dir="${build.filter.src.dir}">
456            <include name="**/*.html"/>
457          </fileset>
458        </copy>
459    
460        <property name="generic.declarations"
461                 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 {}"
462        />
463    
464        <copy todir="${build.filter.doccheck.dir}">
465          <fileset dir="${build.filter.src.dir}">
466            <exclude name="**/*.html"/>
467          </fileset>
468          <filterchain>
469          <!--          <!--
470           # The next two filters try to make the source look like           # These two filters try to make the source look like
471           # something that doccheck can process. The first removes           # something that doccheck can process. The first removes
472           # -source 1.4 assertions and the second adds in a bunch           # -source 1.4 assertions and the second adds in a bunch
473           # of single letter public nested marker interfaces so that           # of single letter public nested marker interfaces so that
474           # the generic type parameters are recognized.           # the generic type parameters are recognized.
          #  
          # Currently commented out because doccheck doesn't work. :-(  
475           -->           -->
476    
         <!--  
477          <filterreader classname="jsr166.ant.filters.ReplaceFilter"          <filterreader classname="jsr166.ant.filters.ReplaceFilter"
478                        classpath="${build.ant.dir}">                        classpath="${build.ant.dir}">
479            <param name="matching"    value="^\s*assert[\s ].*$"/>            <param name="matching"    value="^\s*assert[\s ].*$"/>
# Line 425  Line 483 
483    
484          <filterreader classname="jsr166.ant.filters.ReplaceFilter"          <filterreader classname="jsr166.ant.filters.ReplaceFilter"
485                        classpath="${build.ant.dir}">                        classpath="${build.ant.dir}">
486            <param name="matching"    value="^(.*(class|interface|implements) .*|)\{.*$"/>            <param name="matching"    value="^([^*]*(class|interface|implements) .*|)\{.*$"/>
487            <param name="pattern"     value="$"/>            <param name="pattern"     value="$"/>
488            <param name="replacement" value=" ${generic.declarations}"/>            <param name="replacement" value=" ${generic.declarations}"/>
489          </filterreader>          </filterreader>
         -->  
490    
491        </filterchain>        </filterchain>
492      </copy>      </copy>
# Line 524  Line 581 
581    <target name="configure-compiler">    <target name="configure-compiler">
582    
583      <property name="gjc.version"      <property name="gjc.version"
584               value="2.0"/>               value="2.2"/>
585    
586      <condition property="novariance.arg" value="-novariance">      <condition property="novariance.arg" value="-novariance">
587        <and>        <and>

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.50

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