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.63 by tim, Sat Dec 13 20:45:41 2003 UTC vs.
Revision 1.64 by tim, Wed Mar 24 20:32:33 2004 UTC

# Line 30 | Line 30
30    <property name="build.dir"            location="build"/>
31    <property name="build.classes.dir"    location="${build.dir}/classes"/>
32    <property name="build.testcases.dir"  location="${build.dir}/testcases"/>
33 +  <property name="build.j1.dir"         location="${build.dir}/j1"/>
34    <property name="build.lib.dir"        location="${build.dir}/lib"/>
35    <property name="build.ant.dir"        location="${build.dir}/ant"/>
36    <property name="build.javadocs.dir"   location="${build.dir}/javadocs"/>
# Line 42 | Line 43
43    <!-- Source locations -->
44    <property name="src.dir"              location="${basedir}/src/main"/>
45    <property name="test.src.dir"         location="${basedir}/src/test"/>
46 +  <property name="j1.src.dir"           location="${basedir}/src/javaone"/>
47    <property name="tck.src.dir"          location="${test.src.dir}/tck"/>
48    <property name="jtreg.src.dir"        location="${test.src.dir}/jtreg"/>
49    <property name="ant.src.dir"          location="${basedir}/etc/ant"/>
# Line 65 | Line 67
67      <pathelement location="${junit.jar}"/>
68    </path>
69  
70 +  <!-- Test classpath -->
71 +  <path id="j1.classpath">
72 +    <pathelement location="${build.j1.dir}"/>
73 +    <pathelement location="${junit.jar}"/>
74 +  </path>
75 +
76  
77    <!-- Main targets -->
78  
# Line 446 | Line 454
454                     fork="true">
455  
456        <jvmarg value="${bootclasspath.args}"/>
457 +      <jvmarg value="-server"/>
458 +      <jvmarg value="-showversion"/>
459        
460        <classpath refid="test.classpath"/>
461  
# Line 592 | Line 602
602  
603    <!-- Standalone sample program -->
604    
605 <  <target name="sample" depends="jar">
605 >  <target name="sample" depends="">
606    
607      <mkdir dir="${build.testcases.dir}"/>
608      
# Line 603 | Line 613
613        deprecation="${build.deprecation}"
614             source="${build.sourcelevel}"
615               fork="true">
616 <            
616 >      
617 >      <!--
618        <compilerarg value="${bootclasspath.args}"/>
619        <compilerarg line="${build.args}"/>
620        
621        <classpath refid="test.classpath"/>
622 +      -->
623        
624        <include name="jsr166/test/Sample.java"/>
625        
626      </javac>
627      
628 +    <copy todir="${build.testcases.dir}">
629 +      <fileset dir="${test.src.dir}">
630 +        <include name="**/*.properties"/>
631 +      </fileset>
632 +    </copy>
633 +  
634              
635      <java classname="jsr166.test.Sample" fork="true">
636        <jvmarg value="${bootclasspath.args}"/>
637 +      <!-- <jvmarg value="-server"/> -->
638 +      <!-- <jvmarg value="-ea"/> -->
639        <classpath refid="test.classpath"/>
640 +      <!-- <arg value="1000"/> -->
641 +    </java>
642 +  </target>
643 +
644 +
645 +  <!-- BoF demos -->
646 +  
647 +  <target name="j1" depends="jar">
648 +  
649 +    <mkdir dir="${build.j1.dir}"/>
650 +    
651 +    <javac srcdir="${j1.src.dir}"
652 +          destdir="${build.j1.dir}"
653 +            debug="${build.debug}"
654 +       debuglevel="${build.debuglevel}"
655 +      deprecation="${build.deprecation}"
656 +           source="${build.sourcelevel}"
657 +             fork="true">
658 +            
659 +      <compilerarg value="${bootclasspath.args}"/>
660 +      <compilerarg line="${build.args}"/>
661 +      
662 +      <classpath refid="j1.classpath"/>
663 +      
664 +    </javac>
665 +    
666 + <!--
667 +    <java classname="MainClass" fork="true">
668 +      <jvmarg value="${bootclasspath.args}"/>
669 +      <classpath refid="j1.classpath"/>
670      </java>
671 + -->
672 +
673 +    <junit printsummary="true"
674 +             showoutput="true"
675 +          errorProperty="junit.failed"
676 +        failureProperty="junit.failed"
677 +                    dir="${build.j1.dir}"
678 +                   fork="true">
679 +
680 +      <jvmarg value="${bootclasspath.args}"/>
681 +      <jvmarg value="-server"/>
682 +      
683 +      <classpath refid="j1.classpath"/>
684 +
685 +      <formatter type="xml"/>
686 +
687 +      <batchtest todir="${build.j1.dir}">
688 +        <fileset dir="${j1.src.dir}">
689 +          <include name="**/*Test.java"/>
690 +        </fileset>
691 +      </batchtest>
692 +
693 +    </junit>
694 +
695 +    <!-- Sets junit.report.format to frames if redirection is present,
696 +         otherwise sets it to noframes. -->
697 +    <available property="junit.report.format"
698 +                  value="frames"
699 +              classname="org.apache.xalan.lib.Redirect"
700 +    />
701 +    <property name="junit.report.format" value="noframes"/>
702 +
703 +    <junitreport todir="${build.j1.dir}">
704 +      <fileset dir="${build.j1.dir}">
705 +        <include name="TEST-*.xml"/>
706 +      </fileset>
707 +      <report styledir="${stylesheet.dir}"
708 +                format="${junit.report.format}"
709 +                 todir="${build.j1.dir}"
710 +      />
711 +    </junitreport>
712 +
713 +    <fail message="Test Cases Failed" if="junit.failed"/>
714 +
715    </target>
716  
717    
# Line 724 | Line 818
818        <!-- Watch out: path separator hardwired to semicolon here! -->
819        <sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/>
820        <classpath refid="test.classpath"/>
821 +      <arg line="count in word frequency of word in command line count"/>
822      </java>
823      
824    </target>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines