ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21211] New: - DELETE Task doesnt delete directorys with included fileset
Date Tue, 01 Jul 2003 08:10:38 GMT
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


Mime
View raw message