2002/07/19 05:26:04
[org.ibex.core.git] / src / org / xwt / plat / GCJ.xml
index 55bb86d..fae6954 100644 (file)
         </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}">