I double-checked what Stefan said; he is indeed correct. The following is on OS X 10.2.1:

$ ant -version
Apache Ant version 1.5 compiled on July 9 2002
$ bsh -cp /usr/local/java/jakarta/jakarta-ant/lib/ant.jar
BeanShell 1.2b42 - by Pat Niemeyer
bsh % show();
<true>
bsh % org.apache.tools.ant.taskdefs.condition.Os.isFamily("mac");
<true>
bsh % org.apache.tools.ant.taskdefs.condition.Os.isFamily("unix");
<true>
bsh % System.getProperty("os.name");
<Mac OS X>

I know that's not the most up-to-date version of Ant (or BeanShell, for that matter), but I doubt that the results have changed.

Paul


On Friday, November 8, 2002, at 01:56 AM, Stefan Bodewig wrote:

On Thu, 07 Nov 2002, Henri Gomez <[EMAIL PROTECTED]> wrote:

Till we're speaking of symlink, how does macos/x report itself ?

Dunno exactly (would have to boot my iBook to be sure, let me know if you need the exact details). I know that the symlink test passes (and does something) on that machine 8-)

as mac or unix ?

I think os.name is something like "MacOS X".

Os.isFamily("mac") and Os.isFamily("unix") will both return true.

Stefan


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to