forked from geoscript/geoscript-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
48 lines (39 loc) · 1.5 KB
/
build.xml
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
<?xml version="1.0"?>
<project name="GeoScriptJS" default="usage" basedir=".">
<property name="project" value="geoscript-js"/>
<property name="home" value="."/>
<property name="build" value="${home}/build"/>
<property name="test.only" value="${home}/tests/all.js"/>
<target name="usage">
<echo message=""/>
<echo message="GeoScriptJS build targets"/>
<echo message=""/>
<echo message=" test --> runs tests"/>
<echo message=" clean --> clean up compiled resources"/>
</target>
<target name="init">
<echo message="pulling in submodules"/>
<exec executable="git" failonerror="true">
<arg line="submodule init"/>
</exec>
<exec executable="git" failonerror="true">
<arg line="submodule sync"/>
</exec>
<exec executable="git" failonerror="true">
<arg line="submodule update"/>
</exec>
<echo message="building ringo jars"/>
<ant dir="externals/ringojs" target="jar"/>
</target>
<target name="test">
<java jar="externals/ringojs/run.jar" fork="true" failonerror="yes">
<sysproperty key="ringo.home" path="externals/ringojs"/>
<sysproperty key="ringo.classpath" value="lib/**,../../jars/**"/>
<sysproperty key="ringo.modulepath" path="lib"/>
<arg path="${test.only}"/>
</java>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>