bodewig     2003/06/24 01:32:43

  Modified:    src/etc/testcases/taskdefs/fixcrlf build.xml
               src/testcases/org/apache/tools/ant/taskdefs FixCrLfTest.java
  Log:
  Demonstrate PR 20840
  
  Revision  Changes    Path
  1.9       +5 -0      ant/src/etc/testcases/taskdefs/fixcrlf/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/fixcrlf/build.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- build.xml 3 Sep 2002 15:51:52 -0000       1.8
  +++ build.xml 24 Jun 2003 08:32:43 -0000      1.9
  @@ -142,4 +142,9 @@
                />
     </target>
   
  +  <!-- Bugzilla Report 20840 -->
  +  <target name="createParentDirs" depends="init">
  +    <fixcrlf srcdir="." destdir="result" includes="input/Junk1.java"/>
  +  </target>
  +
   </project>
  
  
  
  1.14      +11 -1     
ant/src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java
  
  Index: FixCrLfTest.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- FixCrLfTest.java  7 Mar 2003 11:23:11 -0000       1.13
  +++ FixCrLfTest.java  24 Jun 2003 08:32:43 -0000      1.14
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -200,6 +200,16 @@
           executeTarget("testCrCrLfSequence-mac");
           assertEqualContent(new 
File("src/etc/testcases/taskdefs/fixcrlf/expected/crcrlf.mac"),
                              new 
File("src/etc/testcases/taskdefs/fixcrlf/result/crcrlf"));
  +    }
  +
  +    /**
  +     * Bugzilla Report 20840
  +     *
  +     * Will fail with an exception if the parent directories do not
  +     * get created.
  +     */
  +    public void testCreateParentDirs() { 
  +        executeTarget("createParentDirs");
       }
   
       public void assertEqualContent(File expect, File result) 
  
  
  

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

Reply via email to