ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Krey <>
Subject Re: UNS: Re: umask from ant
Date Fri, 03 Aug 2012 00:15:29 GMT
On Thu, 02 Aug 2012 16:00:11 +0000, Bruce Atherton wrote:
> 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>

Problem is: This will work, but won't work as expected. The umask it
is setting is a process property, and the whole point of it being
a builtin to the shell is that that is the only way it can affect
other commands at all.

As it is above it will just set the umask of the shell running
int the <exec>, and nothing more.


"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800

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

View raw message