ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Inconsistent behaviour between exec and apply with the os parameter
Date Fri, 23 May 2008 13:22:03 GMT
Hi all,

I am having some very weird behaviour from ant v1.6.5. The following two 
tags are executed one after the other, the exec tag matches the os 
parameter on Linux, and is run correctly. The apply tag doesn't match 
the os parameter on Linux, and isn't run at all.

Is this a known bug?

     <!-- does not match on Linux -->
     <apply executable="mex" os="Linux">
       <arg line="-v -glnxa64 -outdir &quot;${build-dir}&quot;"/>
       <srcfile/>
       <fileset refid="target-mex-fileset"/>
     </apply>

     <!-- does match on Linux -->
     <exec dir="." failonerror="true" executable="mcc" os="Mac OS X, 
Linux, Windows XP, Windows 2003, SunOS">
       <arg line="-W java:${component},${component},1.0 -d 
&quot;${build-dir}&quot; -S -T link:lib -v -g -d 
&quot;${build-dir}&quot; -w disable" />
       <arg line="-B"/>
       <arg file="${build-dir}/options.txt" />
     </exec>

Regards,
Graham
--

Mime
View raw message