You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Graham Leggett <mi...@sharp.fm> on 2008/05/23 15:22:03 UTC
Inconsistent behaviour between exec and apply with the os parameter
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 "${build-dir}""/>
<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
"${build-dir}" -S -T link:lib -v -g -d
"${build-dir}" -w disable" />
<arg line="-B"/>
<arg file="${build-dir}/options.txt" />
</exec>
Regards,
Graham
--