-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
180 lines (171 loc) · 7.22 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="UTF-8"?>
<project name="gripps" default="dist" basedir=".">
<description>This buildfile was generated by GenerateAnt plugin for IntelliJ IDEA</description>
<!--set global properties for this build-->
<property name="src" location="src" />
<property name="build" location="classes" />
<property name="lib" location="lib" />
<property name="dist" location="dist" />
<property name="distlib" location="dist/lib" />
<property name="docs" location="docs" />
<property name="docsapi" location="docs/api" />
<property name="tests" location="test" />
<property name="reports" location="test/report" />
<property name="htmlreports" location="test/report/html" />
<property name="ccndir" location="classes/net/gripps/ccn"/>
<property name="clouddir" location="classes/net/gripps/cloud"/>
<property name="workflowdir" location="classes/org/ncl/workflow"/>
<target name="clean">
<!--Delete created directory trees-->
<delete dir="${build}" includeEmptyDirs="true" />
<delete includeEmptyDirs="true">
<fileset dir="${dist}" excludes="lib/**" />
</delete>
<delete dir="${docs}" includeEmptyDirs="true" />
<delete dir="${docsapi}" includeEmptyDirs="true" />
<delete dir="${tests}" includeEmptyDirs="true" />
<delete dir="${reports}" includeEmptyDirs="true" />
<delete dir="${htmlreports}" includeEmptyDirs="true" />
</target>
<target name="init">
<!--creates the build directory-->
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
<mkdir dir="${distlib}" />
<mkdir dir="${docs}" />
<mkdir dir="${docsapi}" />
<mkdir dir="${tests}" />
<mkdir dir="${reports}" />
<mkdir dir="${htmlreports}" />
</target>
<target name="resources">
<copy todir="${build}">
<fileset dir="${src}">
<include name="**/*.jpe" />
<include name="**/*.jpeg" />
<include name="**/*.rmf" />
<include name="**/*.wav" />
<include name="**/*.mid" />
<include name="**/*.midi" />
<include name="**/*.au" />
<include name="**/*.gif" />
<include name="**/*.png" />
<include name="**/*.aiff" />
<include name="**/*.properties" />
</fileset>
</copy>
</target>
<target name="build" depends="init, resources">
<!--Compiles the java code from ${src} directory into ${build} directory-->
<javac encoding="utf-8" destdir="${build}">
<src path="${src}" />
<classpath path="${lib}/commons-math-2.0.jar" />
<classpath path="${lib}/ncl-taskschedsim.jar"/>
<classpath path="${lib}/ncl-sfc.jar"/>
<classpath path="${lib}/jdom-2.0.0.jar" />
<classpath path="${lib}/log4j-api-2.11.1.jar" />
<classpath path="${lib}/jsock-20190503.jar" />
<classpath path="${lib}/jackson-annotations-2.9.8.jar" />
<classpath path="${lib}/jackson-core-2.9.8.jar" />
<classpath path="${lib}/jackson-databind-2.9.8.jar" />
<classpath path="${lib}/commons-net-3.6.jar" />
<!--<classpath path="${lib}/commons-math3-3.2.jar" /> -->
<!--<exclude name="**/*Test.java" />
<exclude name="**/Test*.java" /> -->
</javac>
</target>
<target name="dist" depends="build">
<!--Put everything in ${build} into the MyProject-${DSTAMP}.jar file-->
<tstamp />
<jar jarfile="${dist}/gripps-${DSTAMP}.jar" basedir="${build}" />
</target>
<target name="doc" depends="init">
<javadoc destdir="${docsapi}" author="true" version="true" use="true" windowtitle="API for gripps" encoding="UTF-8">
<fileset dir="${src}" defaultexcludes="yes">
<!--<exclude name="**/*Test.java" />
<exclude name="**/Test*.java" /> -->
</fileset>
</javadoc>
</target>
<target name="build_tests" depends="init">
<!--Compiles the tests into ${tests} directory-->
<javac destdir="${tests}">
<src path="${src}" />
<classpath path="${lib}/commons-math-2.0.jar" />
<classpath path="${lib}/jdom-2.0.0.jar" />
<classpath path="${lib}/log4j-api-2.11.1.jar" />
<classpath path="${lib}/log4j-core-2.11.1.jar" />
<classpath path="${lib}/jsock-20190503.jar" />
<classpath path="${lib}/jackson-annotations-2.9.8.jar" />
<classpath path="${lib}/jackson-core-2.9.8.jar" />
<classpath path="${lib}/jackson-databind-2.9.8.jar" />
<classpath path="${lib}/commons-net-3.6.jar" />
<classpath path="${lib}/ncl-taskschedsim.jar"/>
<classpath path="${lib}/ncl-sfc.jar"/>
<include name="**/*Test.java" />
<include name="**/Test*.java" />
<src path="${src}" />
</javac>
</target>
<target name="run_tests" depends="build, build_tests">
<junit printsummary="yes">
<classpath path="${build}" />
<classpath path="${tests}" />
<formatter type="xml" usefile="true" />
<batchtest todir="${reports}">
<fileset dir="${tests}">
<include name="**/*Test.class" />
<include name="**/Test*.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="report" depends="run_tests">
<junitreport todir="${reports}">
<fileset dir="${reports}">
<include name="TEST-*.xml" />
</fileset>
<report format="noframes" todir="${htmlreports}" />
</junitreport>
</target>
<target name="encoding">
<native2ascii src="src" dest="src2">
<!-- <exclude name="**/*.java" />-->
<include name="**/*.java" />
<include name="**/*.properties" />
</native2ascii>
</target>
<target name="build_nclw" depends="init, resources">
<!--Compiles the java code from ${src} directory into ${build} directory-->
<javac destdir="${build}">
<src path="${src}/org" />
<classpath path="${lib}/commons-math-2.0.jar" />
<classpath path="${lib}/jdom-2.0.0.jar" />
<classpath path="${lib}/log4j-api-2.11.1.jar" />
<classpath path="${lib}/log4j-core-2.11.1.jar" />
<classpath path="${lib}/jsock-20190503.jar" />
<classpath path="${lib}/jackson-annotations-2.9.8.jar" />
<classpath path="${lib}/jackson-core-2.9.8.jar" />
<classpath path="${lib}/jackson-databind-2.9.8.jar" />
<classpath path="${lib}/commons-net-3.6.jar" />
<classpath path="${lib}/ncl-taskschedsim.jar"/>
<classpath path="${lib}/ncl-sfc.jar"/>
<!--<classpath path="${lib}/commons-math3-3.2.jar" /> -->
<!--<exclude name="**/*Test.java" />
<exclude name="**/Test*.java" /> -->
</javac>
</target>
<target name="dist_nclw" depends="build_nclw">
<!--Put everything in ${build} into the MyProject-${DSTAMP}.jar file-->
<tstamp />
<jar jarfile="${dist}/nclw-${DSTAMP}.jar" basedir="${build}" />
</target>
<target name="jar_sched" >
<jar jarfile="${lib}/ncl-taskschedsim.jar" basedir="${build}">
</jar>
</target>
<target name="jar_sfc" >
<jar jarfile="${lib}/ncl-sfc.jar" basedir="${build}">
</jar>
</target>
</project>