ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Detecting what OS you are running...
Date Fri, 24 Feb 2006 06:39:19 GMT
><condition property="isDarwin">
>	<equals arg1="Mac OS X" arg2="${os.name}" /> </condition>
>
><target name="darwinTarget" if="isDarwin"> ...
></target>

plus
<target name="all" depends="darwinTarget,fedoraTarget,...."/>


Another technique is
    <antcall target="${os.name}Target"/>
Could be helpful. But it has the drawbacks of <antcall> like new
namespace....


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message