-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
155 lines (141 loc) · 5.82 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="NewSimulator">
<property environment="env" />
<property name="ECLIPSE_HOME"
value="../../../../../../../../../eclipse/java-photon/eclipse/" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.8" />
<property name="source" value="1.8" />
<property name="projectName" value="RecMobiSim" />
<property name="build.dir" location="bin" />
<property name="dist.dir" location="dist" />
<property name="dist.dir.resources" location="dist/resources" />
<property name="dist.lib.dir" location="dist/lib" />
<property name="lib.dir" value="lib" />
<property name="resources.dir" value="resources" />
<path id="NewSimulator.classpath">
<pathelement location="bin" />
<pathelement location="lib/jgraphx-4.2.2.jar" />
<pathelement location="lib/jamon-2.82.jar" />
<pathelement location="lib/sqlite-jdbc-3.7.2.jar" />
<pathelement location="lib/slf4j-api-1.7.5.jar" />
<pathelement location="lib/mahout-math-0.9.jar" />
<pathelement location="lib/mahout-core-0.9.jar" />
<pathelement location="lib/jgrapht-core-1.0.0.jar" />
<pathelement location="lib/guava-16.0.jar" />
<pathelement location="lib/commons-math3-3.2.jar" />
<pathelement location="lib/earcut4j-2.2.2.jar" />
<pathelement location="lib/opencsv-5.5.2.jar" />
<pathelement location="lib/lucene-spatial-5.2.1.jar" />
<pathelement location="lib/batik-all-1.17.jar"/>
<pathelement location="lib/xml-apis-ext-1.3.04.jar"/>
<pathelement location="lib/postgresql-42.6.0.jar"/>
<pathelement location="lib/reactive-streams-1.0.4.jar"/>
<pathelement location="lib/netty-buffer-4.1.100.Final.jar"/>
<pathelement location="lib/netty-codec-4.1.100.Final.jar"/>
<pathelement location="lib/netty-common-4.1.100.Final.jar"/>
<pathelement location="lib/netty-handler-4.1.100.Final.jar"/>
<pathelement location="lib/netty-resolver-4.1.100.Final.jar"/>
<pathelement location="lib/netty-tcnative-classes-2.0.61.Final.jar"/>
<pathelement location="lib/netty-transport-4.1.100.Final.jar"/>
<pathelement location="lib/netty-transport-native-unix-common-4.1.100.Final.jar"/>
<pathelement location="lib/reactor-core-3.5.11.jar"/>
<pathelement location="lib/slf4j-simple-2.0.9.jar"/>
<pathelement location="lib/neo4j-java-driver-5.14.0.jar"/>
<pathelement location="lib/gs-algo-2.0.jar"/>
<pathelement location="lib/gs-core-2.0.jar"/>
<pathelement location="lib/gs-ui-swing-2.0.jar"/>
</path>
<pathconvert property="classpath.name" pathsep=" ">
<path refid="NewSimulator.classpath" />
<mapper>
<chainedmapper>
<flattenmapper />
<globmapper from="*.jar" to="lib/*.jar" />
</chainedmapper>
</mapper>
</pathconvert>
<target name="init">
<mkdir dir="bin" />
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.java" />
<exclude
name="es/unizar/dao/MemoryDataManagementQueueDB.java" />
<exclude
name="es/unizar/dao/MemoryDataManagementUserDB.java" />
<exclude name="es/unizar/dao/MemoryDAOFactory.java" />
<exclude name="es/unizar/util/VariableWeight.java" />
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin" />
</target>
<target depends="clean" name="cleanall" />
<target depends="build-subprojects,build-project" name="build" />
<target name="build-subprojects" />
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}" />
<javac debug="true" debuglevel="${debuglevel}" destdir="bin"
includeantruntime="false" source="${source}" target="${target}">
<src path="src" />
<exclude
name="es/unizar/dao/MemoryDataManagementQueueDB.java" />
<exclude name="es/unizar/dao/MemoryDataManagementUserDB.java" />
<exclude name="es/unizar/dao/MemoryDAOFactory.java" />
<exclude name="es/unizar/util/VariableWeight.java" />
<classpath refid="NewSimulator.classpath" />
</javac>
</target>
<target
description="Build all projects which reference this project. Useful to propagate changes."
name="build-refprojects" />
<target
description="copy Eclipse compiler jars to ant lib directory"
name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins"
includes="org.eclipse.jdt.core_*.jar" />
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar" />
<fileset dir="${ECLIPSE_HOME}/plugins"
includes="org.eclipse.jdt.core_*.jar" />
</unzip>
</target>
<target description="compile project with Eclipse compiler"
name="build-eclipse-compiler">
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />
<antcall target="build" />
</target>
<target name="MainSimulator">
<java classname="es.unizar.gui.MainSimulator" failonerror="true"
fork="yes">
<classpath refid="NewSimulator.classpath" />
</java>
</target>
<target name="copy-dependencies">
<copy todir="${dist.lib.dir}">
<fileset dir="${lib.dir}" includes="**/*.jar" excludes="**/*sources.jar, **/*javadoc.jar" />
</copy>
<copy todir="${dist.dir.resources}">
<fileset dir="${resources.dir}/" includes="**/**"/>
</copy>
</target>
<target name="jar" depends="build, copy-dependencies" description="package, output to JAR">
<echo message="classpath.name : ${classpath.name} " />
<mkdir dir="${dist.dir}" />
<mkdir dir="${dist.lib.dir}"/>
<jar jarfile="${dist.dir}/${projectName}.jar" basedir="${build.dir}" excludes="**/*.java,*.txt">
<!-- <fileset dir="." includes="resources/**"/> -->
<manifest>
<attribute name="Main-Class" value="es/unizar/gui/MainSimulator"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Class-Path" value="${classpath.name}" />
</manifest>
<fileset dir="." includes="resources/**" />
</jar>
</target>
</project>