You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/07/01 10:10:38 UTC
DO NOT REPLY [Bug 21211] New: -
DELETE Task doesnt delete directorys with included fileset
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21211>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21211
DELETE Task doesnt delete directorys with included fileset
Summary: DELETE Task doesnt delete directorys with included
fileset
Product: Ant
Version: 1.5.3
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: michael.ebinger@gmx.de
I have a delete task with an included fileset which selects some directories.
The files of the direcories are deleted, but not the directories by itself even
when includeEmptyDirs is set.
In the following a part of the buzildfile is given
<target name="init">
<tstamp>
<format property="log.dirtoday" pattern="yyyy.MM.dd"/>
<format property="month" pattern="yyyyMM"/>
</tstamp>
<property name="archiv.name" value="log${month}.zip"/>
<patternset id="log.filestoarchiv" includes = "log*\**\*"
excludes="log${log.dirtoday}*\**\*"/>
<mkdir dir="${archiv.dir}"/>
</target>
<target name="delete" depends="init">
<delete includeEmptyDirs="true">
<fileset dir="${log.maindir}">
<patternset refid="log.filestoarchiv"/>
</fileset>
</delete>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org