Missing "srcfile"
this should work
<apply executable="attrib"
dir="${sandbox}">
<srcfile/>
<fileset dir="???????" />
<arg value="+r" />
<arg value="*.*" />
<arg value="/s" />
</apply>
Cheers!!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 2:49 PM
To: [EMAIL PROTECTED]
Subject: problem with apply-task and attrib
Hi,
on WinNT I want to set the "r"-attribute of all files in a tree.
I tried to use the apply-task but it doesn't work how I want it to.
My code:
<apply executable="attrib"
dir="${sandbox}">
<fileset dir="???????" />
<arg value="+r" />
<arg value="*.*" />
<arg value="/s" />
</apply>
Ant should run the attrib-command only once in the directory ${sandbox}.
What should I write in the fileset?
Because the tree-walker of attrib is much faster than the one from
Java/Ant I don't want to use a fileset including all files and
directories but i want to use the argument "/s".
Thanks for help,
Jens
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>