Browse Source

Demonstrate PR 20840

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274694 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
91ae25fffb
2 changed files with 16 additions and 1 deletions
  1. +5
    -0
      src/etc/testcases/taskdefs/fixcrlf/build.xml
  2. +11
    -1
      src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java

+ 5
- 0
src/etc/testcases/taskdefs/fixcrlf/build.xml View File

@@ -142,4 +142,9 @@
/>
</target>

<!-- Bugzilla Report 20840 -->
<target name="createParentDirs" depends="init">
<fixcrlf srcdir="." destdir="result" includes="input/Junk1.java"/>
</target>

</project>

+ 11
- 1
src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java View File

@@ -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
@@ -202,6 +202,16 @@ public class FixCrLfTest extends BuildFileTest {
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)
throws AssertionFailedError, IOException {
if (!result.exists()) {


Loading…
Cancel
Save