2002/07/30 19:44:52
[org.ibex.core.git] / build.xml
index 7db2fcd..7e30af2 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,4 +1,4 @@
-<project name="xwt" default="run" basedir=".">
+<project name="xwt" default="compile" basedir=".">
 
     <!-- required so that libgcj.jar doesn't interfere with non-gcj compilation -->
     <property name="build.sysclasspath" value="first"/>
 
     <!-- purges binaries we've built -->
     <target name="clean">
-        <bash>
-            find . -name \*\~ | xargs rm -f
-            find . -name \#\*\# | xargs rm -f
-            rm -rf bin-* bin
-        </bash>
+        <delete quiet="true" dir="bin"/>
+        <delete quiet="true">
+            <fileset dir="./" casesensitive="yes" defaultexcludes="no">
+                <include name="bin-*"/>
+                <include name="**/*~"/>
+                <include name="**/#*#"/>
+                <exclude name="**/.#*"/>
+                <exclude name="**/%*%"/>
+                <exclude name="**/._*"/>
+                <exclude name="**/CVS"/>
+                <exclude name="**/CVS/**"/>
+                <exclude name="**/.cvsignore"/>
+                <exclude name="**/SCCS"/>
+                <exclude name="**/SCCS/**"/>
+                <exclude name="**/vssver.scc"/>
+                <exclude name="**/.svn"/>
+                <exclude name="**/.svn/**"/>
+            </fileset>
+        </delete>
     </target>
 
     <!-- compiles all .java files into .class files; all other tasks predepend on this since they need the <taskdef/>'s -->
         <taskdef name="bash" classname="org.xwt.tasks.BashTask">
             <classpath path="bin/"/>
         </taskdef>
-        <echo message="updating builtin.xwar"/>
-        <zip update="true" zipfile="bin/org/xwt/builtin.xwar" basedir="src" includes="org/xwt/builtin/*.png,org/xwt/builtin/*.xwt"/>
+        <echo message="updating     .xwt -> .xwar"/>
+        <zip update="true" zipfile="bin/org/xwt/builtin.xwar" basedir="src" includes="org/xwt/builtin/*.png,org/xwt/builtin/*.xwt,org/xwt/builtin/*.xwf"/>
     </target>
 
     <target name="build" depends="compile">
         <ant dir="." antfile="src/org/xwt/plat/${plat}.xml" target="build"/>
     </target>
 
-    <target name="run" depends="compile,build">
-        <ant dir="." antfile="src/org/xwt/plat/${plat}.xml" target="run"/>
-    </target>
-
 </project>