Which might be a problem on some systems, as sometimes umask is a built-in shell command.

Commands to find out where umask is: "which umask", "type umask".

Even if it is built in to the shell, it may still be available as an executable on your system. Try looking in /bin, /sbin, /usr/bin, and /usr/sbin.

If you still can't find it, change the executable to start your shell and tell it to execute the umask command. Something like this:

<exec executable="/bin/sh">
    <arg value="-c" />
    <arg value="umask" />
    <arg value="0002" />
</exec>

On 8/2/2012 1:56 PM, Maurice Feskanich 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<elstonk...@yahoo.com>  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: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to