-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
72 lines (63 loc) · 2.29 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<project name="IMCAgents" default="all">
<property name="test-dir" location="src-junit" />
<path id="classpath.base">
<pathelement location="build" />
<fileset dir="lib" includes="*.jar" />
</path>
<path id="classpath.test">
<path refid="classpath.base" />
<pathelement location="${test.dir}" />
<fileset dir="lib/test" includes="*.jar" />
</path>
<target name="compile-test" depends="compile">
<javac encoding="UTF-8" srcdir="src-junit" destdir="build"
includes="**/*.java" fork="false">
<classpath refid="classpath.test" />
</javac>
</target>
<target name="test" depends="compile-test">
<junit>
<classpath refid="classpath.test" />
<formatter type="brief" usefile="false" />
<test name="pt.lsts.imc.agents.tests.TestLocation" />
<test name="pt.lsts.imc.agents.tests.TestAgents" />
</junit>
</target>
<target name="all" depends="compile,test" />
<target name="compile">
<mkdir dir="build" />
<delete dir="build" />
<mkdir dir="build" />
<javac encoding="UTF-8" srcdir="src;src-sim;src-control"
destdir="build" includes="**/*.java" fork="false">
<classpath refid="classpath.base"/>
</javac>
</target>
<target name="jar" depends="compile">
<unjar src="lib/akka-actor_2.10-2.2.3.jar" dest="build"/>
<unjar src="lib/annprops-1.1.jar" dest="build"/>
<unjar src="lib/config-1.0.2.jar" dest="build"/>
<unjar src="lib/ini4j-0.5.2.jar" dest="build"/>
<unjar src="lib/libimc.jar" dest="build"/>
<unjar src="lib/scala-library.jar" dest="build"/>
<jar destfile="agents.jar" basedir="build" index="true">
<manifest>
<attribute name="Main-Class" value="pt.lsts.imc.agents.AgentContext"/>
</manifest>
</jar>
</target>
<target name="package" depends="jar">
<deltree dir="imcagents"/>
<mkdir dir="imcagents"/>
<copy todir="imcagents">
<fileset dir="." includes="conf/*"/>
<fileset file="agents.jar"/>
</copy>
<get dest="imcagents/ejre_bbb.tar.gz" src="http://zpserver.info/lsts/jvm/ejre-7u71-fcs-b14-linux-arm-vfp-sflt-server_headless-26_sep_2014.tar.gz"/>
<untar compression="gzip" src="imcagents/ejre_bbb.tar.gz" dest="imcagents"/>
<delete file="imcagents/ejre_bbb.tar.gz"/>
<tar destfile="imcagents.tar" basedir="imcagents">
</tar>
<bzip2 src="imcagents.tar" destfile="imcagents.tbz2"/>
</target >
</project>