-
Notifications
You must be signed in to change notification settings - Fork 1
/
lti-usp-2013.xml
103 lines (90 loc) · 3.54 KB
/
lti-usp-2013.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<project name="lti-usp-2013" basedir="." default="run">
<property name="mas2j.project.file" value="lti-usp-2013.mas2j" />
<property name="debug" value="" /> <!-- use "-debug" to run in debug mode -->
<property name="build.dir" value="${basedir}/bin/classes" />
<path id="project.classpath">
<pathelement location="${build.dir}" />
<fileset dir="${basedir}/lib">
<include name="*.jar" />
</fileset>
</path>
<property name="jar.class.path" value="${toString:project.classpath}" />
<pathconvert property="manifest.classpath" pathsep=" ">
<path refid="project.classpath"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<!-- tasks the user can override in his/her c-build.xml script -->
<target name="user-init">
</target>
<target name="user-end">
</target>
<target name="init">
<mkdir dir="${build.dir}" />
<antcall target="user-init" />
</target>
<target name="compile" depends="init">
<condition property="srcdir" value="${basedir}/src/java" else="${basedir}">
<available file="${basedir}/src/java" />
</condition>
<javac srcdir="${srcdir}" destdir="${build.dir}" debug="true" optimize="true">
<classpath refid="project.classpath" />
</javac>
</target>
<target name="jar" depends="compile">
<delete file="${ant.project.name}.jar" />
<copy file="${mas2j.project.file}" tofile="default.mas2j" />
<jar update="yes" jarfile="${ant.project.name}.jar" >
<manifest>
<attribute name="Main-Class" value="jason.infra.centralised.RunCentralisedMAS"/>
<attribute name="Class-Path" value="${manifest.classpath}"/>
</manifest>
<fileset dir="${basedir}">
<include name="**/*.asl" />
<include name="**/*.mas2j" />
<include name="**/logging.properties" />
</fileset>
<fileset dir="${build.dir}">
<include name="**/*.class" />
</fileset>
</jar>
<delete file="default.mas2j" />
</target>
<target name="run" depends="compile">
<echo message="Running project ${ant.project.name}" />
<delete failonerror="no" includeEmptyDirs="true" verbose="false">
<fileset dir="${basedir}" includes="mind-ag/**" />
</delete>
<java classname="jason.infra.centralised.RunCentralisedMAS" failonerror="true" fork="yes" dir="${basedir}">
<classpath refid="project.classpath" />
<arg line="${mas2j.project.file} ${debug} " />
<jvmarg line="-Xmx2000M -Xss8M" />
<!--
<jvmarg line="-Xmx500M -Xss8M" />
-->
</java>
<antcall target="user-end" />
</target>
<target name="jdebug" depends="compile">
<echo message="Running project ${ant.project.name}" />
<delete failonerror="no" includeEmptyDirs="true" verbose="false">
<fileset dir="${basedir}" includes="mind-ag/**" />
</delete>
<java classname="jason.infra.centralised.RunCentralisedMAS" failonerror="true" fork="yes" dir="${basedir}">
<classpath refid="project.classpath" />
<arg line="${mas2j.project.file} ${debug} " />
<jvmarg line="-Xmx500M -Xss8M -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" />
</java>
<antcall target="user-end" />
</target>
<target name="clean">
<delete failonerror="no" includeEmptyDirs="true" verbose="true">
<fileset dir="${basedir}" includes="**/*.class" />
</delete>
</target>
</project>