ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chan-wa Fong <cwf1...@swbell.net>
Subject RE: new to ant
Date Thu, 21 Mar 2002 15:22:25 GMT
Thanks Barry, it works!!

-----Original Message-----
From: Barry Jia [mailto:bjia@brightspark.com]
Sent: Thursday, March 21, 2002 9:02 AM
To: 'Ant Users List'
Subject: RE: new to ant


Check the document, it is very clear!

  <delete includeEmptyDirs="true">
    <fileset dir="." includes="**/*.*"/>
  </delete>

______________________________________________
 	Barry Jia
Brightspark
Tel:416-488-1999 ext.306
Email: bjia@brightspark.com <mailto:bjia@brightspark.com>





-----Original Message-----
From: Chan-wa Fong [mailto:cwf133s@swbell.net]
Sent: Thursday, March 21, 2002 10:10 AM
To: Ant Users List
Subject: new to ant


Hi,

I am new to ant.

I would like to know does anyone know how to delete all files that are under
a directory such as
c:\tomcat\common\class\?

Here is my undeploy code:
<target name="undeploy" description="undeploys everything from Tomcat">
	<delete dir="${env.TOMCAT_HOME}/webapps/ROOT/${appName}"/>
	<delete dir="${deployClassesDir}/${packageName}"/>
	<delete file="${deployClassesDir}/*.*"/>
</target>

I used this  <delete file="${deployClassesDir}/*.*"/> to try to delete all
the files that are under this directory but it did not work.

THanks!!!




--
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