ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Colton (ext. 799)" <>
Subject RE: List the content of directory
Date Tue, 06 Aug 2002 14:15:24 GMT
Use something like:

		<!-- Specify the files to be obfuscated -->
		<fileset dir="${ta.classes}" id="class.files">
			<include name="com\**\*.class"/>
			<exclude name="**\*$*.class"/>
			<exclude name="**\Test*.*"/>
			<exclude name="**\test*.*"/>
			<exclude name="**\test\*"/>
			<exclude name="**\services\**\orbix2000\*"/>

		<!-- Convert the class.files fileset into a newline
seperated list -->
		<pathconvert pathsep="&#x0A;" property="class.files.list"

Works very well. Just change your separator to ":"

David Colton
Production Team Lead (Technical Architecture)

> -----Original Message-----
> From:	Romain ROUVOY []
> Sent:	Tuesday, August 06, 2002 3:05 PM
> I want to know if it is possible to list the content of a directory in
> order to store it in a property ?
> Is It possible to obtain a property with a value like
> "dist/lib/project.jar:dist/lib/optional.jar:dist/lib/xerces.jar"

The information contained in this e-mail is confidential,
may be privileged and is intended only for the use of the
recipient named above. If you are not the intended
recipient or a representative of the intended recipient,
you have received this e-mail in error and must not copy,
use or disclose the contents of this email to anybody
else. If you have received this e-mail in error, please
notify the sender immediately by return e-mail and
permanently delete the copy you received. This email has
been swept for computer viruses. However, you should
carry out your own virus checks.

Registered in Ireland, No. 205721.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message