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 MoveTest.java
Date Mon, 19 May 2003 14:11:24 GMT
bodewig     2003/05/19 07:11:24

  Modified:    src/etc/testcases/taskdefs move.xml
               src/testcases/org/apache/tools/ant/taskdefs MoveTest.java
  Log:
  Demonstrate bug 18886
  
  Revision  Changes    Path
  1.4       +9 -0      ant/src/etc/testcases/taskdefs/move.xml
  
  Index: move.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/move.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- move.xml	19 May 2003 14:05:22 -0000	1.3
  +++ move.xml	19 May 2003 14:11:24 -0000	1.4
  @@ -41,6 +41,15 @@
       </move>
     </target>
   
  +  <!-- Bugzilla Report 18886 -->
  +  <target name="testDirectoryRetaining">
  +    <mkdir dir="A"/>
  +    <mkdir dir="E"/>
  +    <move todir="E">
  +      <fileset dir="A"/>
  +    </move>
  +  </target>
  +
     <target name="cleanup"> 
       <delete file="move.filterset.tmp"/>
       <delete file="move.filterchain.tmp"/>
  
  
  
  1.7       +7 -0      ant/src/testcases/org/apache/tools/ant/taskdefs/MoveTest.java
  
  Index: MoveTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/MoveTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MoveTest.java	19 May 2003 14:05:23 -0000	1.6
  +++ MoveTest.java	19 May 2003 14:11:24 -0000	1.7
  @@ -109,4 +109,11 @@
           assertTrue(!getProject().resolveFile("A/C").exists());
           assertTrue(!getProject().resolveFile("A/D").exists());
       }
  +
  +    /** Bugzilla Report 18886 */
  +    public void testDirectoryRetaining() throws IOException {
  +        executeTarget("testDirectoryRetaining");
  +        assertTrue(getProject().resolveFile("E").exists());
  +        assertTrue(getProject().resolveFile("A").exists());
  +    }
   }
  
  
  

Mime
View raw message