ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44347] Directories not deleted when a filename contains a backslash
Date Wed, 14 May 2008 13:16:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44347





--- Comment #3 from Colm Smyth <lateralcoder@gmail.com>  2008-05-14 06:16:50 PST ---
On Linux, the following build file... 

<project name="deleteSlashTest">
<property name="dist" value="/tmp/\notexists" />
<delete includeEmptyDirs="true">
<fileset dir="${dist}"/>
</delete>
</project>

...produces two unexpected results with ant -debug: 

[...]
Setting project property: dist -> /tmp/\notexists

BUILD FAILED
/tmp/build.xml:3: Directory does not exist:/tmp/notexists
        at org.apache.tools.ant.taskdefs.Delete.handle(Delete.java:620)
        at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:566)

[...]

Notice that the backslash is in the property, but not in the output of the
delete task.

Can you modify this sample to suit your system and add the results of ant
-debug?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message