ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/tools/xsl build.xsl
Date Mon, 22 Apr 2002 07:42:38 GMT
adammurdoch    02/04/22 00:42:38

  Modified:    tools/xsl build.xsl
  Log:
  - Use fork='true' for unit tests.
  - Fix clean target so that it works when the project has already been cleaned.
  
  Revision  Changes    Path
  1.3       +11 -4     jakarta-ant-myrmidon/tools/xsl/build.xsl
  
  Index: build.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/tools/xsl/build.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xsl	22 Apr 2002 06:52:32 -0000	1.2
  +++ build.xsl	22 Apr 2002 07:42:38 -0000	1.3
  @@ -42,7 +42,7 @@
               <!--Properties for running the unit tests-->
               <property name="test.classes" value="${{build.tests}}/classes"/>
               <property name="test.working.dir" value="${{test.classes}}"/>
  -            <property name="junit.fork" value="false"/>
  +            <property name="junit.fork" value="true"/>
               <property name="junit.failonerror" value="false"/>
               <property name="single.test" value="*"/>
   
  @@ -84,9 +84,16 @@
   
               <target name="clean" description="Cleans up the project">
                   <delete file="checkstyle.cache"/>
  -                <delete includeEmptyDirs="true">
  -                    <fileset dir="${{build.dir}}" excludes="conf/*/manifest.mf" />
  -                </delete>
  +                <xsl:choose>
  +                    <xsl:when test="build/jar|build/antlib">
  +                        <delete includeEmptyDirs="true">
  +                            <fileset dir="${{build.dir}}" excludes="conf/*/manifest.mf"
/>
  +                        </delete>
  +                    </xsl:when>
  +                    <xsl:otherwise>
  +                        <delete dir="${{build.dir}}"/>
  +                    </xsl:otherwise>
  +                </xsl:choose>
                   <delete dir="${{dist.dir}}" />
                   <delete>
                       <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  
  
  

--
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