On Tuesday, July 10, 2001, at 02:55 pm, Jeremy Quinn wrote:
> At 9:28 AM -0400 9/7/01, Vadim Gritsenko wrote:
>> Can we add check for MacOS X to ant script, so other people don't have
>> similar problem?
>
> That would be a nice idea.
>
> The problem may be about to go away, though I am not sure. Apple have just
> released a Developer Preview of Java 1.3.1 for MacOS X, maybe it has this
> switch.
>
The switch doesn't appear to be there at the moment...
> Meanwhile, if you want to apply the patch to bin/ant there is an
> environment variable in MacOS X, $OSTYPE=macos.
Can I suggest the following patch to bin/ant for Mac OS X at the moment
(replacing last line):
if [ $( expr $OSTYPE : '^[dD]arwin.*' ) > 0 ]; then
$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
$ANT_OPTS org.apache.tools.ant.Main "$@"
else
$JAVACMD -classic -classpath "$LOCALCLASSPATH"
-Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
fi
On Mac OS X 10.0.4 the value of OSTYPE in the /bin/sh shell appears to be
"darwin1.0", but it is "Darwin1.3" in Bash and "macos" in csh and tcsh!
Stuart.
-------------------------------------------------------------------------
Stuart Roebuck [EMAIL PROTECTED]
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS <http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]