ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <>
Subject RE: todir attribute with wildcards
Date Tue, 11 Jul 2006 16:09:35 GMT
The todir attribute is to set the single directory where the files will
be copied to.  You can not use it to copy to multiple directories, and
therefore wildcards are not allowed.

If you know there will be only one directory that matches the wildcard,
but you don't know the exact name of the directory ahead of time (I
can't imagine a use case) then you could do something like a direst
followed by a pathconvert to get the actual dirname.


-----Original Message-----
From: news [] On Behalf Of dario
Sent: Tuesday, July 11, 2006 11:20 AM
Subject: todir attribute with wildcards

hi all,

i need to copy some files to location whose name is only partially known

to me.

i tried

<copy todir="${temp.dir}/somedir/tmp*contents/mydir">
	<fileset dir="${source.dir}" includes="**/jsp/*.jsp" />

'*' represents part of the path that changes, but complete path name is 
basically always the same.

anyway, ant complains about destination path. i thought that wildcards 
could help, but it obviously doesn't work. is there any other option to 
specify "todir" which is not full path, but contains wildcards.



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

This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.

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

View raw message