-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.xml
86 lines (59 loc) · 2.33 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
<?xml version="1.0"?>
<!--
July 2010
Build file or Makefile for CloudSim.
Note:
Make sure you have installed 'ant' and put the location of it into
your path so you can access it anywhere.
'ant' can be downloadable from http://ant.apache.org/
Usage:
* Type 'ant' to compile all cloudsim source files, put them into the
classes/ directory and to create a cloudsim-new.jar file in the jars/ directory
* Type 'ant clean' to delete all the compiled classes and the classes/
directory itself. The generated cloudsim-new.jar is not deleted.
Note:
* You need to set up PATH for ant in Windows and/or Unix.
Acknowledgement:
Thank to Uros Cibej for providing this file and instruction on
how to use it.
-->
<project name="CloudSim" basedir="." default="makejar">
<description>
This is the build file for CloudSim
</description>
<!-- location to store Java classes -->
<property name="class.dir" location="./classes" />
<!-- location to store CloudSim source files -->
<property name="src.dir" location="./sources" />
<!-- location to store jar files -->
<property name="jar.dir" location="./jars" />
<!-- classpath declaration -->
<path id="classpath">
<fileset dir="./jars">
<include name="*.jar" />
</fileset>
</path>
<target name="prepare">
<mkdir dir="${class.dir}" />
</target>
<!-- rule to compile CloudSim source files -->
<target name="build" depends="prepare">
<javac srcdir="${src.dir}" destdir="${class.dir}" includeantruntime="false">
<classpath refid="classpath"/>
</javac>
</target>
<!-- Rule for making a jar file.
Note:
* The new jar file is named as "cloudsim-new.jar" to avoid overriding
the existing jar file.
* The new jar file only contains cloudsim classes only.
-->
<target name="makejar" depends="build">
<echo>Compiling a new jar file, named: "cloudsim-new.jar".</echo>
<echo>This jar file contains CloudSim classes only.</echo>
<jar destfile="${jar.dir}/cloudsim-new.jar" basedir="${class.dir}" />
</target>
<target name="clean" description="clean up" >
<delete dir="${class.dir}" />
</target>
</project>