Umask is a shell command, not a standalone binary. So you will need to invoke your shell to run umask. Something like
<exec executable="/bin/bash"> <arg line="-c umask 0222" /> </exec> On Aug 2, 2012 4:57 PM, "Maurice Feskanich" <[email protected]> wrote: > Looks like it needs the full path to the executable. > > Maury > > > On 08/02/12 13:36, Eric Fetzer wrote: > >> Sorry, ant version is 1.7.1 >> >> >> >> On Aug 2, 2012, at 4:32 PM, Eric Fetzer<[email protected]> wrote: >> >> I don't get it, I do the following and it crashes: >>> >>> <exec executable="umask"> >>> <arg value="0002"/> >>> </exec> >>> >>> Anyone have a clue why that would be? I'm on redhat 5.5 (Tikanga). I >>> can type umask 0002 on the command line all day long... Here's the error: >>> >>> /app/rosstr/test.xml:5: Execute failed: java.io.IOException: Cannot run >>> program "umask": java.io.IOException: error=2, No such file or directory >>> >>> Thanks, >>> Eric >>> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: >> [email protected].**org<[email protected]> >> For additional commands, e-mail: [email protected] >> >> > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > [email protected].**org<[email protected]> > For additional commands, e-mail: [email protected] > >
