1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <project name="lsdc" default="compile" basedir=".">
\r
4 <property name="src.dir" value="src" />
\r
5 <property name="lib.dir" value="lib" />
\r
6 <property name="build.dir" value="bin" />
\r
8 <property name="numPMs" value="7" />
\r
9 <property name="numCloudPartners" value="2" />
\r
11 <path id="project.classpath">
\r
12 <dirset dir="${build.dir}" />
\r
13 <fileset dir="${lib.dir}">
\r
14 <include name="*.jar" />
\r
18 <assertions id="project.assertions">
\r
23 <target name="compile" description="Compile project.">
\r
24 <mkdir dir="${build.dir}" />
\r
25 <mkdir dir="scenarios" />
\r
26 <mkdir dir="logs" />
\r
27 <javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="project.classpath" debug="true" deprecation="true" includeantruntime="false" />
\r
30 <target name="run-generator-A" depends="compile" description="Compile project">
\r
31 <java classname="at.ac.tuwien.lsdc.JobGenerator" fork="true" classpathref="project.classpath">
\r
32 <assertions refid="project.assertions" />
\r
35 <arg value="scenarios/scenarioA.csv" />
\r
39 <target name="run-generator" depends="compile, input-runargs" description="Run generator with user defined arguments">
\r
40 <java classname="at.ac.tuwien.lsdc.JobGenerator" fork="true" classpathref="project.classpath">
\r
41 <assertions refid="project.assertions" />
\r
42 <arg value="${args}" />
\r
46 <target name="run-scheduler" depends="compile, input-runargs" description="Run scheduler with user defined arguments">
\r
47 <java classname="at.ac.tuwien.lsdc.SchedSimulator" fork="true" classpathref="project.classpath">
\r
48 <assertions refid="project.assertions" />
\r
49 <arg value="${args}" />
\r
53 <target name="run-scheduler-A-A" depends="compile" description="Run scheduler A on scenario A">
\r
54 <java classname="at.ac.tuwien.lsdc.SchedSimulator" fork="true" classpathref="project.classpath">
\r
55 <assertions refid="project.assertions" />
\r
58 <arg value="${numPMs}" />
\r
59 <arg value="${numCloudPartners}" />
\r
60 <arg value="scenarios/scenarioA.csv" />
\r
61 <arg value="logs/all.csv" />
\r
62 <arg value="logs/scenarioA_schedulerA.csv" />
\r
66 <target name="run-scheduler-A-B" depends="compile" description="Run scheduler B on scenario A">
\r
67 <java classname="at.ac.tuwien.lsdc.SchedSimulator" fork="true" classpathref="project.classpath">
\r
68 <assertions refid="project.assertions" />
\r
71 <arg value="${numPMs}" />
\r
72 <arg value="${numCloudPartners}" />
\r
73 <arg value="scenarios/scenarioA.csv" />
\r
74 <arg value="logs/all.csv" />
\r
75 <arg value="logs/scenarioA_schedulerB.csv" />
\r
79 <target name="run-scheduler-A-C" depends="compile" description="Run scheduler C on scenario A">
\r
80 <java classname="at.ac.tuwien.lsdc.SchedSimulator" fork="true" classpathref="project.classpath">
\r
81 <assertions refid="project.assertions" />
\r
84 <arg value="${numPMs}" />
\r
85 <arg value="${numCloudPartners}" />
\r
86 <arg value="scenarios/scenarioA.csv" />
\r
87 <arg value="logs/all.csv" />
\r
88 <arg value="logs/scenarioA_schedulerC.csv" />
\r
92 <target name="run-all-schedulers" depends="run-scheduler-A-A, run-scheduler-A-B, run-scheduler-A-C" description="Run all schedulers and all scenarios">
\r
95 <target name="input-runargs" unless="args" description="prompts for command line arguments if necessary">
\r
96 <input addProperty="args" message="Type the desired command line arguments:" />
\r
99 <target name="clean" description="Clean build products.">
\r
100 <delete dir="${build.dir}" />
\r
103 <target name="rebuild" depends="clean, compile" description="Clean and build products." />
\r