ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject RE: Help on outputproperty
Date Sat, 18 May 2002 00:43:11 GMT
--- wrote:
> Thank you for reply.
> After I run clearcase tool :
> 	cleartool lsprivate -other -invob /frem_docs
> 	I should get two lines output
> 	 \frem_docs\Documents\x
> 	 \frem_docs\Documents\y
> I'll want to exclude those two files in "copy" task.

Yeah, that's a problem, since <fileset> wants relative paths for files
it's including/excluding -- so even if you sent the output to a file
instead of a property and pointed to it as an 'excludesfile', you still
wouldn't get the files excluded, since they're not relative to the
directory pointed to in your <copy>'s <fileset>.

The simplest suggestion would be to pick up the ant-contrib <foreach> task
so you can send each of the files through <basename> and write the result
out to a file, then use that file for 'excludesfile'.

Are you running Ant1.5 (if not, can you), and would using ant-contrib's
<foreach> be okay to do?  If no to either, then you'd need to go with a
<script> task to do the work of <foreach> and <basename> (on the plus
side, you wouldn't need to write anything out to a file, since you'd just
construct a comma-separated list, set it in a property, and pass that to
'excludes' instead... but it's a pretty paltry plus).



Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience

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

View raw message