Commit c1f1c6a1 authored by Anton Beloglazov's avatar Anton Beloglazov

Fixed the ant building problem: added Flanagan's library to the classpath; updated the readme.txt

parent dc8f1522
...@@ -36,6 +36,9 @@ Acknowledgement: ...@@ -36,6 +36,9 @@ Acknowledgement:
This is the build file for CloudSim This is the build file for CloudSim
</description> </description>
<!-- location of libraries -->
<property name="classpath" location="./jars/flanagan.jar" />
<!-- location to store Java classes --> <!-- location to store Java classes -->
<property name="class.dir" location="./classes" /> <property name="class.dir" location="./classes" />
...@@ -51,7 +54,8 @@ Acknowledgement: ...@@ -51,7 +54,8 @@ Acknowledgement:
<!-- rule to compile CloudSim source files --> <!-- rule to compile CloudSim source files -->
<target name="build" depends="prepare"> <target name="build" depends="prepare">
<javac srcdir="${src.dir}" destdir="${class.dir}" classpath="${classpath}" /> <javac srcdir="${src.dir}" destdir="${class.dir}" classpath="${classpath}"
includeantruntime="false" />
</target> </target>
<!-- Rule for making a jar file. <!-- Rule for making a jar file.
......
...@@ -13,12 +13,12 @@ Table of Contents ...@@ -13,12 +13,12 @@ Table of Contents
1. Directory structure of the CloudSim Toolkit 1. Directory structure of the CloudSim Toolkit
---------------------------------------------- ----------------------------------------------
cloudsim/ -- top level CloudSim directory cloudsim/ -- top level CloudSim directory
docs/ -- CloudSim API Documentation docs/ -- CloudSim API Documentation
examples/ -- CloudSim examples examples/ -- CloudSim examples
jars/ -- CloudSim jar archives jars/ -- CloudSim jar archives
sources/ -- CloudSim source code sources/ -- CloudSim source code
tests/ -- CloudSim unit tests tests/ -- CloudSim unit tests
2. Software requirements: Java version 1.6 or newer 2. Software requirements: Java version 1.6 or newer
...@@ -38,10 +38,10 @@ If you want to remove CloudSim, then remove the whole cloudsim directory. ...@@ -38,10 +38,10 @@ If you want to remove CloudSim, then remove the whole cloudsim directory.
You do not need to compile CloudSim source code. The JAR files are You do not need to compile CloudSim source code. The JAR files are
provided to compile and to run CloudSim applications: provided to compile and to run CloudSim applications:
* jars/cloudsim-<VERSION>.jar -- contains the CloudSim class files * jars/cloudsim-<VERSION>.jar -- contains the CloudSim class files
* jars/cloudsim-<VERSION>-sources.jar -- contains the CloudSim source code files * jars/cloudsim-<VERSION>-sources.jar -- contains the CloudSim source code files
* jars/cloudsim-examples-<VERSION>.jar -- contains the CloudSim examples class files * jars/cloudsim-examples-<VERSION>.jar -- contains the CloudSim examples class files
* jars/cloudsim-examples-<VERSION>-sources.jar -- contains the CloudSim examples source code files * jars/cloudsim-examples-<VERSION>-sources.jar -- contains the CloudSim examples source code files
4. Running the CloudSim examples 4. Running the CloudSim examples
...@@ -57,7 +57,24 @@ To understand how to use CloudSim, please go through the examples provided ...@@ -57,7 +57,24 @@ To understand how to use CloudSim, please go through the examples provided
in the examples/ directory. in the examples/ directory.
6. Compiling CloudSim: using Ant 6. Downloading and using external jars
---------------------------------------
Some of the algorithms in the power package require Michael Thomas Flanagan's
Java Scientific Library. In order to compile CloudSim, it is necessary to
download this library. The library can be downloaded from:
http://www.ee.ucl.ac.uk/~mflanaga/java/
Once the library is downloaded, copy it to the jars/ directory. If you are running
Linux, you can just run the ./install-flanagan.sh script, that will download the
library and place it in the jars/ directory.
Please, make sure that, by using such library, you are respecting the terms of use
defined by the software's author.
7. Compiling CloudSim: using Ant
-------------------------------- --------------------------------
This release contains a simple buildfile for compiling CloudSim classes. This release contains a simple buildfile for compiling CloudSim classes.
...@@ -79,19 +96,4 @@ Note: ...@@ -79,19 +96,4 @@ Note:
* You need to set up PATH for ant in Windows and/or Unix. * You need to set up PATH for ant in Windows and/or Unix.
7. Downloading and using external jars
---------------------------------------
Some of the algorithms in the power package require Michael Thomas Flanagan's
Java Scientific Library. This library can be downloaded from
http://www.ee.ucl.ac.uk/~mflanaga/java/
Once the library is downloaded, copy it to the jars/ directory. If you are running
Linux, you can just run the ./install-flanagan.sh script, that will download the
library and place it in the jars/ directory.
Please, make sure that, by using such library, you are respecting the terms of use
defined by the software's author.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment