ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Attardi <...@attardi.net>
Subject Re: umask from ant
Date Thu, 02 Aug 2012 21:01:53 GMT
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" <maurice.feskanich@oracle.com>
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<elstonkers@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-unsubscribe@ant.apache.**org<user-unsubscribe@ant.apache.org>
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.**org<user-unsubscribe@ant.apache.org>
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message