ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Platform detection
Date Thu, 10 Aug 2000 15:43:55 GMT
>>>>> "DO" == Doremieux, Olivier <> writes:

 DO> In my build.xml I want to be able to use it on Multiple
 DO> Plaforms. But depending on the Platform I want to run different
 DO> target.  Let say I want to execute target A & B on Windows and A
 DO> & C on Solaris.  How can I do that?

Maybe we should add an option for this to <available>?


<project ... default="main">
  <target name="check">
    <available value="windows" file="C:\autoexec.bat" />

  <target name="A" depends="check">

  <target name="B" depends="A" if="windows">

  <target name="C" depends="A" unless="windows">

  <target name="main" depends="B,C" />

do the trick?


View raw message