Commit 303b0297 authored by Anton Beloglazov's avatar Anton Beloglazov

Fixed Issue 32: problem with ant classpath declaration

parent 854f5b10
......@@ -36,9 +36,6 @@ Acknowledgement:
This is the build file for CloudSim
</description>
<!-- location of libraries -->
<property name="classpath" location="./jars/flanagan.jar" />
<!-- location to store Java classes -->
<property name="class.dir" location="./classes" />
......@@ -48,14 +45,22 @@ Acknowledgement:
<!-- 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}" classpath="${classpath}"
includeantruntime="false" />
<javac srcdir="${src.dir}" destdir="${class.dir}" includeantruntime="false">
<classpath refid="classpath"/>
</javac>
</target>
<!-- Rule for making a jar file.
......
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