ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/build.xml
(Generate patch)

Comparing jsr166/build.xml (file contents):
Revision 1.36 by tim, Thu May 29 17:29:08 2003 UTC vs.
Revision 1.44 by tim, Thu Jun 26 11:55:50 2003 UTC

# Line 59 | Line 59
59  
60  
61  
62 <  <!-- Files excluded from emulation and dist-docs -->
63 <  <patternset id="emulation.excludes">
62 >  <!-- Files excluded from dist-docs and emulation jar -->
63 >  <patternset id="unsafe.exclusion">
64      <exclude name="java/util/Random.*"/>
65      <exclude name="sun/misc/Unsafe.*"/>
66    </patternset>
67  
68 +  <!-- Files excludes from emulation jar -->
69 +  <patternset id="atomic.exclusion">
70 +    <exclude name="java/util/concurrent/atomic/AtomicBoolean*"/>
71 +    <exclude name="java/util/concurrent/atomic/AtomicInteger*"/>
72 +    <exclude name="java/util/concurrent/atomic/AtomicLong*"/>
73 +    <exclude name="java/util/concurrent/atomic/AtomicReference*"/>
74 +  </patternset>
75 +
76  
77  
78    <!-- Main targets -->
# Line 77 | Line 85
85  
86      <mkdir dir="${build.classes.dir}"/>
87  
88 + <!--
89 +    <echo>javac ${gjc.args}</echo>
90 +    <echo>bootclasspath=${compile.bootclasspath}</echo>
91 + -->
92 +
93      <javac srcdir="${prepare.src.dir}"
94            destdir="${build.classes.dir}"
95              debug="${build.debug}"
# Line 85 | Line 98
98             source="${build.sourcelevel}"
99               fork="true">
100  
101 <      <bootclasspath refid="javac.bootclasspath"/>
102 <      <compilerarg line="${build.javac.args}"/>
101 >      <compilerarg    line="${gjc.args}"/>
102 >      <bootclasspath refid="compile.bootclasspath"/>
103  
104      </javac>
105  
# Line 177 | Line 190
190             source="${build.sourcelevel}"
191               fork="true">
192  
193 <      <bootclasspath refid="javac.bootclasspath"/>
194 <      <compilerarg line="${build.javac.args} -s"/>
193 >      <compilerarg    line="${gjc.args} -s"/>
194 >      <bootclasspath refid="compile.bootclasspath"/>
195  
196      </javac>
197  
# Line 189 | Line 202
202            depends="init, dist-clean, dist-jar, dist-docs"
203            description="Puts all distributable products in single hierarchy"/>
204  
205 +  <target name="release"
206 +          depends="dist"
207 +          description="Puts entire CVS tree, plus distribution productions, in a jar">
208 +
209 +    <delete dir="${build.dir}"/>
210 +
211 +    <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
212 +
213 +    <jar basedir="${basedir}" destfile="${release.jar}">
214 +      <exclude name="${release.jar}"/>
215 +      <exclude name="user.properties"/>
216 +      <exclude name="etc/notes/**"/>
217 +      <exclude name="lib/gjc/2.1/**"/>
218 +      <exclude name="**/SyntaxTest.java"/>
219 +    </jar>
220 +
221 +  </target>
222  
223    <target name="clean"
224            description="Removes all build products">
# Line 272 | Line 302
302             source="${build.sourcelevel}"
303               fork="true">
304  
305 <      <bootclasspath refid="javac.bootclasspath"/>
306 <      <compilerarg line="${build.javac.args}"/>
305 >      <compilerarg    line="${gjc.args}"/>
306 >      <bootclasspath refid="compile.bootclasspath"/>
307  
308      </javac>
309  
# Line 287 | Line 317
317  
318      <jar destfile="${product.jar}" duplicate="add">
319        <fileset dir="${build.classes.dir}">
320 <        <patternset refid="emulation.excludes"/>
320 >        <patternset refid="atomic.exclusion"/>
321 >        <patternset refid="unsafe.exclusion"/>
322        </fileset>
323        <fileset dir="${build.emulation.dir}"/>
324      </jar>
# Line 336 | Line 367
367      <copy todir="${build.filter.src.dir}">
368        <fileset dir="${src.dir}">
369          <exclude name="**/*.html"/>
370 <        <patternset refid="emulation.excludes"/>
370 >        <patternset refid="unsafe.exclusion"/>
371        </fileset>
372        <filterchain>
373  
# Line 411 | Line 442
442  
443      <mkdir dir="${build.testcases.dir}"/>
444  
445 + <!--
446 +    <echo>javac ${gjc.args}</echo>
447 +    <echo>bootclasspath=${test.compile.bootclasspath}</echo>
448 +    <echo>classpath="${test.classpath}"</echo>
449 + -->
450 +
451      <javac srcdir="${test.src.dir}"
452            destdir="${build.testcases.dir}"
453              debug="${build.debug}"
# Line 419 | Line 456
456             source="${build.sourcelevel}"
457               fork="true">
458  
459 <      <classpath refid="test.classpath"/>
460 <      <bootclasspath refid="javac.bootclasspath"/>
461 <      <compilerarg line="${build.javac.args}"/>
459 >      <compilerarg    line="${gjc.args}"/>
460 >      <bootclasspath refid="test.compile.bootclasspath"/>
461 >      <classpath     refid="test.classpath"/>
462  
463      </javac>
464  
# Line 443 | Line 480
480                      dir="${build.reports.dir}"
481                     fork="true">
482  
483 <      <jvmarg value="${test.bootclasspath.arg}"/>
483 >      <jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/>
484  
485        <formatter type="xml"/>
486  
# Line 489 | Line 526
526      <property name="gjc.version"
527               value="2.0"/>
528  
529 <    <condition property="build.novariance" value="-novariance">
529 >    <condition property="novariance.arg" value="-novariance">
530        <and>
531          <equals arg1="${gjc.version}" arg2="2.0"/>
532          <or>
# Line 499 | Line 536
536        </and>
537      </condition>
538  
539 <    <property name="build.novariance"
539 >    <property name="novariance.arg"
540               value=""/>
541  
542      <property name="gjc.dir"
# Line 509 | Line 546
546            location="${gjc.dir}/${gjc.version}/javac.jar"/>
547  
548      <property name="collect.jar"
549 <          location="${gjc.dir}/${gjc.version}/collect${build.novariance}.jar"/>
549 >          location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/>
550  
551  
552 <    <condition property="build.warnunchecked" value="-warnunchecked">
552 >    <condition property="warnunchecked.arg" value="-warnunchecked">
553        <istrue value="${gjc.warnunchecked}"/>
554      </condition>
555  
556 <    <property name="build.warnunchecked" value=""/>
556 >    <property name="warnunchecked.arg" value=""/>
557  
558      <condition property="prepare.src.dir" value="${build.dir}/prepare-src">
559        <istrue value="${build.nothreads}"/>
# Line 527 | Line 564
564       ! Bootclasspath munging for source compilation.
565       -->
566  
567 <    <path id="javac.bootclasspath.prefix">
531 <      <!-- <pathelement location="${src.dir}"/> -->
567 >    <path id="pre.bootclasspath">
568        <pathelement location="${javac.jar}"/>
569      </path>
570  
571 <    <path id="javac.bootclasspath">
572 <      <!-- <pathelement location="${src.dir}"/> -->
571 >    <path id="compile.bootclasspath">
572 >      <pathelement location="${build.classes.dir}"/>
573        <pathelement location="${collect.jar}"/>
574        <pathelement location="${rt.jar}"/>
575      </path>
576  
577 <    <!-- Flatten bootclasspath prefix into a platform-appropriate string -->
578 <    <property name="javac.bootclasspath.prefix"
579 <             refid="javac.bootclasspath.prefix"/>
544 <
545 <    <!-- Turn the flattened bootclasspath prefix into a javac argument -->
546 <    <property name="build.bootclasspath.arg"
547 <             value='-J-Xbootclasspath/p:${javac.bootclasspath.prefix}'/>
548 <
549 <    <!-- Flatten bootclasspath for trace message -->
550 <    <property name="javac.bootclasspath"
551 <             refid="javac.bootclasspath"/>
577 >    <!-- Flatten paths into platform-appropriate strings -->
578 >    <property name="pre.bootclasspath"     refid="pre.bootclasspath"/>
579 >    <property name="compile.bootclasspath" refid="compile.bootclasspath"/>
580  
553    <!-- Common options in javac invocations -->
554    <property name="build.javac.args"
555             value="${build.bootclasspath.arg} ${build.warnunchecked} ${build.novariance}"/>
581  
582 <    <echo>javac ${build.javac.args}</echo>
583 <    <echo>bootclasspath=${javac.bootclasspath}</echo>
582 >    <!-- Common options in javac invocations -->
583 >    <property name="gjc.args"
584 >             value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}"
585 >    />
586  
587    </target>
588  
# Line 591 | Line 618
618    </target>
619  
620  
621 <  <target name="configure-tests">
621 >  <target name="configure-tests"
622 >       depends="configure-compiler">
623  
624      <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
625      <available property="junit.available"
# Line 612 | Line 640
640        <pathelement location="${junit.jar}"/>
641      </path>
642  
643 <    <!-- Flatten test classpath into a platform-appropriate string -->
644 <    <property name="test.classpath" refid="test.classpath"/>
643 >    <path id="test.compile.bootclasspath">
644 >      <pathelement location="${javac.jar}"/>
645 >      <pathelement location="${collect.jar}"/>
646 >      <pathelement location="${rt.jar}"/>
647 >    </path>
648  
649 <    <!-- Turn the flattened test classpath into a javac argument -->
650 <    <property name="test.bootclasspath.arg"
651 <             value='-Xbootclasspath/p:${test.classpath}'/>
649 >    <path id="test.run.bootclasspath">
650 >      <pathelement location="${javac.jar}"/>
651 >      <path refid="test.classpath"/>
652 >    </path>
653 >
654 >    <!-- Flatten test classpaths into platform-appropriate strings -->
655 >    <property name="test.classpath"             refid="test.classpath"/>
656 >    <property name="test.compile.bootclasspath" refid="test.compile.bootclasspath"/>
657 >    <property name="test.run.bootclasspath"     refid="test.run.bootclasspath"/>
658  
659    </target>
660  
# Line 648 | Line 685
685    </target>
686  
687  
688 +  <target name="ng" depends="test">
689 +    <java classname="SuperfluousAbstract" fork="true">
690 +
691 +      <jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/>
692 +
693 +    </java>
694 +  </target>
695 +
696 +
697   </project>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines