ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs StyleTest.java
Date Mon, 21 Mar 2005 14:49:45 GMT
bodewig     2005/03/21 06:49:45

  Modified:    src/etc/testcases/taskdefs/style build.xml
               src/testcases/org/apache/tools/ant/taskdefs StyleTest.java
  Log:
  Unit test for PR 24866
  
  Revision  Changes    Path
  1.5       +7 -0      ant/src/etc/testcases/taskdefs/style/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/style/build.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.xml	16 Apr 2004 08:36:01 -0000	1.4
  +++ build.xml	21 Mar 2005 14:49:45 -0000	1.5
  @@ -70,6 +70,13 @@
         <delete file="tmp.xsl"/>
     </target>
   
  +  <target name="testDirectoryHierarchyWithDirMatching">
  +    <mkdir dir="${out.dir}/src/level1/"/>
  +    <copy file="data.xml" todir="${out.dir}/src/level1/"/>
  +    <style basedir="${out.dir}/src" destdir="${out.dir}/dest"
  +           style="printParams.xsl"/>
  +  </target>
  +
     <target name="copyXsl" if="xsl.value">
         <copy file="testNewerStylesheet.xsl" tofile="tmp.xsl" overwrite="true">
             <filterchain><expandproperties/></filterchain>
  
  
  
  1.13      +7 -1      ant/src/testcases/org/apache/tools/ant/taskdefs/StyleTest.java
  
  Index: StyleTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/StyleTest.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- StyleTest.java	16 Dec 2004 14:01:37 -0000	1.12
  +++ StyleTest.java	21 Mar 2005 14:49:45 -0000	1.13
  @@ -1,5 +1,5 @@
   /*
  - * Copyright  2003-2004 The Apache Software Foundation
  + * Copyright  2003-2005 The Apache Software Foundation
    *
    *  Licensed under the Apache License, Version 2.0 (the "License");
    *  you may not use this file except in compliance with the License.
  @@ -96,6 +96,12 @@
                              "set='myvalue'");
       }
   
  +    public void testDirectoryHierarchyWithDirMatching() throws Exception {
  +        executeTarget("testDirectoryHierarchyWithDirMatching");
  +        assertTrue(getProject().resolveFile("out/dest/level1/data.html")
  +                   .exists());
  +    }
  +
       // *************  copied from ConcatTest  *************
   
       // ------------------------------------------------------
  
  
  

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


Mime
View raw message