ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject RE: Platform detection
Date Thu, 10 Aug 2000 16:54:56 GMT
At 09:29  10/8/00 -0700, you wrote:
>This might do the trick but not in All cases.
>I think when you are using NT you don't need an AutoExec.bat.
>You can boot from another harddrive than C:, so the path can not be hardcode
>in the build.xml
>Is there someway to use the java properties System.getProperty("os.arch") or
>System.getProperty("") from there we have some way to know on which
>platform the build.xml is used.

they are already available as properties - so you can place ${os.arch} in
appropriate places and it will be expanded to correct value depending on



| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |

View raw message