</apply>
<echo message='wrapping .xwar -> .o'/>
- <bash>
- ${gcc-path}/bin/${gcc-target}gcj --resource org/xwt/builtin.xwar -c bin/org/xwt/builtin.xwar -o bin-${plat}/org/xwt/builtin.o
- </bash>
+ <apply failonerror='true' executable='${gcc-path}/bin/${gcc-target}gcj' dest='bin-${plat}/'>
+ <fileset dir='bin/' includes='**/*.xwar'/>
+ <arg value='--resource'/>
+ <arg value='org/xwt/builtin.xwar'/>
+ <arg value='-c'/>
+ <srcfile/>
+ <arg value='-o'/>
+ <targetfile/>
+ <mapper type='glob' from='*.xwar' to='*.o'/>
+ </apply>
<echo message='linking .o -> ${binaryname}'/>
<uptodate property="linked" targetfile="bin-${plat}/${binaryname}">