forked from ooici/ioncore-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
86 lines (76 loc) · 2.62 KB
/
build.xml
File metadata and controls
86 lines (76 loc) · 2.62 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!-- Ant build file for LCAarch -->
<project name="LCAarch" default="info" basedir=".">
<description>
This is the ANT build file for the LCAarch OOI CI Python capability
container and service platform.
</description>
<!-- load python specific ant tasks from jar file -->
<taskdef resource="pyAntTasks.properties" classpath="res/lib/pyAntTasks-1.3.3.jar"/>
<!-- set global properties for this build -->
<property name="src" location="ion"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<target name="info">
<echo message="LCAarch ant build file. Specify a target to build"/>
</target>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
</target>
<target name="compile" depends="init"
description="compile the source">
<!-- Precompiles all Python code without executing. Finds compile errors -->
<py-compile dir="${src}" pythonpath="${src}" optimize="0"/>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
</target>
<target name="clean"
description="clean up" >
<delete>
<fileset dir="${src}" includes="**/*.pyc"/>
</delete>
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="newcc" depends=""
description="start a Python CC" >
<!-- Run new empty capability container without shell -->
<echo message="Starting empty ION PyCC with sysname=${user.name}"/>
<exec executable="twistd">
<arg value="-n"/>
<arg value="--logfile=-"/>
<arg value="magnet"/>
<arg value="-h"/>
<arg value="amoeba.ucsd.edu"/>
<arg value="-a"/>
<arg value="sysname=${user.name}"/>
<arg value="-n"/>
<arg value="res/scripts/newcc.py"/>
</exec>
</target>
<target name="javalca" depends=""
description="start Python CC with Java Integration LCA Demo" >
<!-- Run new empty capability container without shell -->
<echo message="Starting ION PyCC with sysname=${user.name}"/>
<exec executable="twistd">
<arg value="-n"/>
<arg value="--logfile=-"/>
<arg value="magnet"/>
<arg value="-h"/>
<arg value="amoeba.ucsd.edu"/>
<arg value="-a"/>
<arg value="sysname=${user.name}"/>
<arg value="-n"/>
<arg value="res/scripts/javalca.py"/>
</exec>
</target>
<target name="test" depends="clean"
description="exdecutes all trial unit test cases" >
<exec executable="trial">
<arg value="${src}"/>
</exec>
</target>
</project>