ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neta Bar Tal" <>
Subject RE: <copy> task problem
Date Tue, 25 May 2004 06:38:07 GMT

I found a solution already of how doing this issue.
I attach it so everybody can use it:

<copy todir="${env.CCWPA}/bin" flatten="true" includeEmptyDirs="false">
                        <fileset dir="${env.CCWSCA}/scripts"
		<path id="sources.bin.copy">
		      		<fileset dir="${env.CCWSCA}/scripts">
		      			 <include name="**/*" />
		<property name="all.sources.bin.copy"
		<propertyregex property="products.copy.bin"
input="${all.sources.bin.copy}" regexp="${env.CCWSCA}/scripts/src/"
replace=" " casesensitive="true" />
		<propertyregex property="last.products.copy.bin"
input="${products.copy.bin}" regexp=":" replace="" casesensitive="true"
		<chmod perm="a+x">
                        <fileset dir="${env.CCWPA}/bin"

Neta Bar-Tal

* 972-9-7960521


-----Original Message-----
From: Stefan Bodewig []
Sent: Tuesday: May 25: 2004 9:36 AM
Subject: Re: <copy> task problem

On Mon, 24 May 2004, Neta Bar Tal <> wrote:

> the copied files are not with the same permissions as the sources
> files.

That is because Java doesn't provide access to the file permissions at
all.  See the "Unix Note" at the end of

> can anyone please assist of how should I chmod the files to +x in the
> dest dir, after I copy them?

Either use <exec>/<apply> with cp as the manual says or run <chmod>
after copy inside the dest dir.


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

The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.

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

View raw message