From 91ae25fffbc870d03793739a1b1d3da3d2ae928d Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 24 Jun 2003 08:32:43 +0000 Subject: [PATCH] Demonstrate PR 20840 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274694 13f79535-47bb-0310-9956-ffa450edef68 --- src/etc/testcases/taskdefs/fixcrlf/build.xml | 5 +++++ .../org/apache/tools/ant/taskdefs/FixCrLfTest.java | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/etc/testcases/taskdefs/fixcrlf/build.xml b/src/etc/testcases/taskdefs/fixcrlf/build.xml index fa9adbd7f..2e5df163e 100644 --- a/src/etc/testcases/taskdefs/fixcrlf/build.xml +++ b/src/etc/testcases/taskdefs/fixcrlf/build.xml @@ -142,4 +142,9 @@ /> + + + + + diff --git a/src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java b/src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java index 0faa3fa2f..7cc7ec1ad 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java @@ -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()) {