mvdb        2002/12/30 10:51:33

  Modified:    betwixt  build.xml
  Log:
  Newly by maven generated build.xml.
  
  Revision  Changes    Path
  1.10      +83 -61    jakarta-commons/betwixt/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/build.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- build.xml 2 Sep 2002 16:55:49 -0000       1.9
  +++ build.xml 30 Dec 2002 18:51:33 -0000      1.10
  @@ -6,19 +6,29 @@
     <property name="classesdir" value="target/classes"></property>
     <property name="testclassesdir" value="target/test-classes"></property>
     <property name="testreportdir" value="target/test-reports"></property>
  +  
  +  
  +  
  +  
  +     
  +             
  +  
  +  
  +  <property name="resourcedir" 
value="D:\projects\cvs.apache.org\jakarta-commons\betwixt/src/java"></property>
  +  
     <property name="distdir" value="dist"></property>
     <property name="javadocdir" value="target/docs/apidocs"></property>
     <property name="final.name" value="commons-betwixt-1.0-beta-1"></property>
     
     <target name="init" description="o Initializes some properties">
  -
  +    <mkdir dir="lib"></mkdir>
       <condition property="noget">
         <equals arg2="only" arg1="${build.sysclasspath}"></equals>
       </condition>
     </target>
  -    
  -  <target name="jar" description="o Create the jar" depends="get-deps">
   
  +  <target name="compile" description="o Compile the code" depends="get-deps">
  +    
       <mkdir dir="${classesdir}"></mkdir>
   
       <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" 
excludes="**/package.html">
  @@ -31,25 +41,32 @@
           </fileset>
         </classpath>
       </javac>
  -
       
  - 
       
  +
  +    
  +             
    
  -    <copy todir="${classesdir}">
  +    <copy todir="${testclassesdir}">
         
         
         
  -      <fileset dir="${basedir}">
         
  +      <fileset dir="src/test">
         
  -        <include name="**/*.properties"></include>
  +      
  +        <include name="**/*.betwixt"></include>
         
         
         </fileset>
       </copy>
    
  +             
  +
  +  </target>
       
  +  <target name="jar" description="o Create the jar" depends="compile,test">
  +
       <jar jarfile="target/${final.name}.jar" excludes="**/package.html" 
basedir="${classesdir}"></jar>
   
     </target>
  @@ -66,54 +83,57 @@
       </copy>
     </target>
    
  -  <target name="test" description="o Run the test cases" depends="compile-tests">
  -    <mkdir dir="${testreportdir}"></mkdir>
  -    <junit dir="./" printSummary="yes" fork="true" haltonerror="true">
  -      <sysproperty key="basedir" value="src/test"></sysproperty>
  -      <formatter type="xml"></formatter>
  -      <formatter usefile="true" type="plain"></formatter>
  -      <classpath>
  -        <fileset dir="lib">
  -          <include name="*.jar"></include>
  -        </fileset>
  -        <pathelement location="target/${final.name}.jar"></pathelement>
  -        <pathelement path="${testclassesdir}"></pathelement>
  -      </classpath>
  -      <batchtest todir="${testreportdir}">
  -        <fileset dir="src/test">
  -              
  -                <include name="**/Test*.java"></include>
  -              
  -              
  -        </fileset>
  -      </batchtest>
  -    </junit>
  +  <target name="test" description="o Run the test cases" if="test.failure" 
depends="internal-test">
  +    <fail message="There were test failures."></fail>
     </target>
  -
  -  <target name="compile-tests" depends="jar">
  -    <mkdir dir="${testclassesdir}"></mkdir>
  -    <javac destdir="${testclassesdir}" deprecation="true" debug="true" 
optimize="false" excludes="**/package.html">
  -      <src>
  -        <pathelement location="src/test"></pathelement>
  -      </src>
  -      <classpath>
  -        <fileset dir="lib">
  -          <include name="*.jar"></include>
  -        </fileset>
  -        <pathelement location="target/${final.name}.jar"></pathelement>
  -      </classpath>
  -    </javac>
  -
  +  <target name="internal-test" depends="compile-tests">
       
  -   
  +      <mkdir dir="${testreportdir}"></mkdir>
  +      <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" 
haltonerror="true">
  +        
  +        <sysproperty key="basedir" 
value="D:\projects\cvs.apache.org\jakarta-commons\betwixt"></sysproperty>
  +        <formatter type="xml"></formatter>
  +        <formatter usefile="true" type="plain"></formatter>
  +        <classpath>
  +          <fileset dir="lib">
  +            <include name="*.jar"></include>
  +          </fileset>
  +          <pathelement path="${testclassesdir}"></pathelement>
  +          <pathelement path="${classesdir}"></pathelement>
  +        </classpath>
  +        <batchtest todir="${testreportdir}">
  +          <fileset dir="src/test">
  +            
  +              <include name="**/Test*"></include>
  +            
  +            
  +            
  +            
  +            
  +          </fileset>
  +        </batchtest>
  +      </junit>
       
  - 
  -    <copy todir="${testclassesdir}">
  -      <fileset dir="src/test">
  +  </target>
  +
  +  <target name="compile-tests" depends="compile">
  +    
  +      <mkdir dir="${testclassesdir}"></mkdir>
  +      <javac destdir="${testclassesdir}" deprecation="true" debug="true" 
optimize="false" excludes="**/package.html">
  +        <src>
  +          <pathelement location="src/test"></pathelement>
  +        </src>
  +        <classpath>
  +          <fileset dir="lib">
  +            <include name="*.jar"></include>
  +          </fileset>
  +          <pathelement path="${classesdir}"></pathelement>
  +        </classpath>
  +      </javac>
  +
         
  +   
         
  -      </fileset>
  -    </copy>
       
     </target>
   
  @@ -131,7 +151,7 @@
    
       <property name="title" value="Betwixt 1.0-beta-1 API"></property>
    
  -    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" 
version="true" sourcepath="src/java" packagenames="org.apache.commons.betwixt.*">
  +    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" 
version="true" sourcepath="src/java" packagenames="org.apache.commons.*.*">
         <classpath>
           <fileset dir="lib">
             <include name="*.jar"></include>
  @@ -144,16 +164,18 @@
   
     <target name="get-deps" unless="noget" depends="init">
     
  -    <mkdir dir="lib"></mkdir>
       
  -    <get dest="lib/commons-logging-1.0.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.jar";></get>
  -    <get dest="lib/commons-beanutils-1.3.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.3.jar";></get>
  -    <get dest="lib/commons-collections-2.0.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.0.jar";></get>
  -    <get dest="lib/commons-digester-1.2.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.2.jar";></get>
  -    <get dest="lib/xerces-2.0.0.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/xerces/jars/xerces-2.0.0.jar";></get>
  -    <get dest="lib/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-2.0.2.jar";></get>
  -    <get dest="lib/junit-3.7.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/junit/jars/junit-3.7.jar";></get>
  -  
  +    <get dest="lib/commons-logging-1.0.2.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.2.jar";></get>
  +    <get dest="lib/commons-beanutils-1.5.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.5.jar";></get>
  +    <get dest="lib/commons-collections-2.1.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.1.jar";></get>
  +    <get dest="lib/commons-digester-1.3.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.3.jar";></get>
  +    <get dest="lib/xerces-2.2.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/xerces/jars/xerces-2.2.1.jar";></get>
  +    <get dest="lib/xml-apis-1.0.b2.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-1.0.b2.jar";></get>
  +    <get dest="lib/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar";></get>
  +    
  +    <get dest="lib/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar";></get>
  +    <get dest="lib/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar";></get>
  +    <get dest="lib/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar";></get>
     </target>
   
     
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to