ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siamack Farshi <sfar...@724.com>
Subject RE: A simple question
Date Wed, 15 May 2002 15:25:47 GMT
Sorry for include I use

-----Original Message-----
From: Siamack Farshi [mailto:sfarshi@724.com]
Sent: Wednesday, May 15, 2002 11:24 AM
To: 'Ant Users List'
Subject: A simple question
<include name="**"/>


Hello everyone:
 This may seem like a simple question, but I appreciate if someone
can give me a hint;

I have a directory structure:

wartemp
	|_mdir
	|_ydir
	|_web-inf
		|_lib
	|_zdir

I would like to delete everyting and only leave the following
directory structure

wartemp
	|_web-inf
		|_lib

I used the following:

	<target name="cleanwardir" depends="init,prepare">
		 <delete>
			<fileset dir="${wardir}">
				<include name="**"/>
				<exclude name="WEB-INF/lib"/>
			</fileset>
		 </delete>
	</target>

however, this only removes all the files, including
those in subdirectories and leaves the subdirectories
undeleted.

I do not want to list the directory names as each time
they will have a different name. I only need to keep:

wartemp
	|_web-inf
		|_lib

thanks for your replies,


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message