-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
70 lines (59 loc) · 2.43 KB
/
build.xml
File metadata and controls
70 lines (59 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<project basedir="." default="jar" name="ikido">
<description>
Ikido is a micro-framework for web apps
</description>
<property file="build.properties"/>
<property file="default.build.properties"/>
<path id="build.classpath">
<fileset dir="${lib.dir}" includes="*.jar"/>
</path>
<target name="prepare" depends="clean" description="Creates the directories needed for building">
<mkdir dir="${build.dir}"/>
<mkdir dir="${classes.dir}"/>
</target>
<target name="compile" depends="prepare" description="Compile the source files for the project.">
<copy todir="${classes.dir}" filtering="true" overwrite="true">
<fileset dir="${src.dir}" includes="**/*.properties"/>
</copy>
<copy todir="${classes.dir}">
<fileset dir="src/ioke" includes="**/*.ik"/>
</copy>
</target>
<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"/>
<include name="**/*.ik"/>
<include name="**/*.properties"/>
</fileset>
</jar>
</target>
<target name="sample-app" depends="jar" description="Create the sample.war file in the jetty/webapps directory">
<war destfile="jetty/webapps/root.war" webxml="sample/WEB-INF/web.xml">
<lib dir="${lib.dir}" includes="ikanserve.jar,ioke.jar,ioke-lib.jar,ikido.jar"/>
<classes dir="sample" includes="app/**/*"/>
</war>
</target>
<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>