ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant build.xml
Date Fri, 24 May 2002 14:31:57 GMT
bodewig     02/05/24 07:31:57

  Modified:    .        Tag: ANT_15_BRANCH build.xml
  Log:
  Add two new targets (not used by distribution target yet):
  
  * test-jar:  creates a jar of classes that my be useful for task
  writers writing JUnit tests.
  
  * test-javadocs:  API docs for above classes.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.304.2.8 +52 -0     jakarta-ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/build.xml,v
  retrieving revision 1.304.2.7
  retrieving revision 1.304.2.8
  diff -u -r1.304.2.7 -r1.304.2.8
  --- build.xml	22 May 2002 08:37:21 -0000	1.304.2.7
  +++ build.xml	24 May 2002 14:31:57 -0000	1.304.2.8
  @@ -67,6 +67,7 @@
     <property name="build.lib" value="${build.dir}/lib"/>
     <property name="build.javadocs" value="${build.dir}/javadocs"/>
     <property name="build.tests" value="${build.dir}/testcases"/>
  +  <property name="build.tests.javadocs" value="${build.dir}/javadocs.test/"/>
   
     <path id="classpath">
     </path>
  @@ -303,6 +304,20 @@
     
     <!--
          ===================================================================
  +         Set up a patternsets that matches the parts of our JUnit testsuite
  +         that may be useful for task developers.
  +       ===================================================================
  +  -->
  +  <patternset id="useful.tests">
  +    <include name="${ant.package}/BuildFileTest*" />
  +    <include name="${regexp.package}/RegexpMatcherTest*" />
  +    <include name="${regexp.package}/RegexpTest*" />
  +    <include name="${optional.package}/AbstractXSLTLiaisonTest*" />
  +    <include name="${ant.package}/types/AbstractFileSetTest*" />
  +  </patternset>
  +
  +  <!--
  +       ===================================================================
            Check to see what optional dependencies are available
          ===================================================================
     -->
  @@ -691,6 +706,17 @@
   
     </target>
   
  +  <!--   Creates jar of test utility classes -->
  +  <target name="test-jar"
  +          depends="compile-tests"
  +          description="--> creates the Apache Ant Test Utilties jar">
  +
  +    <jar destfile="${build.lib}/${name}-testutil.jar"
  +         basedir="${build.tests}">
  +      <patternset refid="useful.tests" />
  +    </jar>
  +  </target>
  +
     <!--
          ===================================================================
            Create the essential distribution that can run Apache Ant
  @@ -1043,6 +1069,12 @@
                 targetfile="${build.javadocs}/packages.html" >
           <srcfiles dir= "${java.dir}" includes="**/*.java"/>
       </uptodate>
  +    <uptodate property="tests.javadoc.notrequired"
  +              targetfile="${build.tests.javadocs}/packages.html" >
  +      <srcfiles dir= "${tests.dir}">
  +        <patternset refid="useful.tests" />
  +      </srcfiles>
  +    </uptodate>
     </target>
   
     <target name="javadocs" depends="prepare, javadoc_check"
  @@ -1068,6 +1100,26 @@
         <group title="Optional Tasks" packages="org.apache.tools.ant.taskdefs.optional*"
/>
         <group title="Optional Types" packages="org.apache.tools.ant.types.optional*"
/>
         <group title="Ant Utilities" packages="org.apache.tools.ant.util*" />
  +
  +      <bottom>Copyright &#169; 2000-${year} Apache Software Foundation. All Rights
Reserved.</bottom>
  +    </javadoc>
  +  </target>
  +
  +  <target name="test-javadocs" depends="prepare, javadoc_check"
  +          unless="tests.javadoc.notrequired"
  +          description="--> creates the API documentation for test utilities">
  +    <mkdir dir="${build.tests.javadocs}"/>
  +    <javadoc useexternalfile="yes"
  +             destdir="${build.tests.javadocs}"
  +             author="true"
  +             version="true"
  +             locale="en"
  +             windowtitle="${Name} Test Utilities"
  +             doctitle="${Name}">
  +
  +      <fileset dir="${tests.dir}">
  +        <patternset refid="useful.tests" />
  +      </fileset>
   
         <bottom>Copyright &#169; 2000-${year} Apache Software Foundation. All Rights
Reserved.</bottom>
       </javadoc>
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message