Permalink
Browse files

created a target named test to run ispec and a target test-small to r…

…un ispec with -fp option
  • Loading branch information...
felipero committed Apr 21, 2009
1 parent 3ff3a74 commit 36b8a361d2d113c86ae526bc801049ce9fffa5fe
Showing with 23 additions and 2 deletions.
  1. +21 −2 build.xml
  2. +2 −0 default.build.properties
View
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
-<project basedir="." default="sample-app" name="ikido">
+<project basedir="." default="jar" name="ikido">
<description>
Ikido is a micro-framework for web apps
</description>
@@ -27,7 +27,25 @@
</copy>
</target>
- <target name="jar" depends="compile" description="Create the ikido.jar file">
+ <target name="test-small" depends="compile" description="Runs all ISpec tests">
+ <java classname="ioke.lang.Main" fork="true" failonerror="true" maxmemory="256m">
+ <classpath refid="build.classpath"/>
+ <classpath path="${classes.dir}"/>
+ <classpath path="${test.dir}"/>
+ <arg line="../ioke/bin/ispec test -fp"/>
+ </java>
+ </target>
+
+ <target name="test" depends="compile" description="Runs all ISpec tests">
+ <java classname="ioke.lang.Main" fork="true" failonerror="true" maxmemory="256m">
+ <classpath refid="build.classpath"/>
+ <classpath path="${classes.dir}"/>
+ <classpath path="${test.dir}"/>
+ <arg line="../ioke/bin/ispec test -fs"/>
+ </java>
+ </target>
+
+ <target name="jar" depends="compile, test" description="Create the ikido.jar file">
<jar destfile="${lib.dir}/ikido.jar">
<fileset dir="${classes.dir}">
<include name="**/*.class"/>
@@ -47,5 +65,6 @@
<target name="clean" description="clean almost everything">
<delete dir="${build.dir}"/>
<delete file="${lib.dir}/ikido.jar" quiet="true"/>
+ <delete file="${webapp.dir}/root.war" quiet="true" />
</target>
</project>
View
@@ -2,5 +2,7 @@ src.dir=src/main
lib.dir=lib
build.dir=build
classes.dir=${build.dir}/classes
+test.dir=test
+webapp.dir=jetty/webapps
javac.version=1.5
release.dir=rels

0 comments on commit 36b8a36

Please sign in to comment.