Here are a couple of ideas:
*use a wrapper script to set a system environment variable, which you can
access with <property env="..."/>
*write a custom task that can make the determination in Java code
*use <script> to write custom logic (don't know if this is realistic - I
don't really use <script>)
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
"Marion, Patrick" <[EMAIL PROTECTED]> wrote on 10/13/2005
08:06:06 PM:
> Problem:
> have ant tell me whether I am running on a 64 bit architecture.
>
> I thought the solution was:
>
> check for the value of the "os.arch" property.
>
> Unfortunately, if I can make something out of the value returned on
Windows
> ("amd64) I can't on Linux (it returns "i386" which is identical to the
one
> on a 32 bit machine); solaris sparc just returns "sparc". The only os.*
> properties which seem to be available to ant at start time seem to be:
> "version", "name", and "arch".
>
> Any suggestion on how to better handle this?
>
> Thanks.
> P.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>