Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
authorkbaati <kbaati@realopt-Latitude-E6530>
Fri, 24 Jul 2015 12:59:00 +0000 (14:59 +0200)
committerkbaati <kbaati@realopt-Latitude-E6530>
Fri, 24 Jul 2015 12:59:00 +0000 (14:59 +0200)
update PerSimGrid in contrib/

contrib/psg/Makefile [new file with mode: 0644]
contrib/psg/run.sh
contrib/psg/test.sh

diff --git a/contrib/psg/Makefile b/contrib/psg/Makefile
new file mode 100644 (file)
index 0000000..43fc9dd
--- /dev/null
@@ -0,0 +1,27 @@
+LIB_JARS= lib.jar
+
+all: compile doc
+
+compile:
+       mkdir -p classes
+       javac -sourcepath src -classpath $(LIB_JARS):../../simgrid.jar -d classes `find -L -name "*.java"`
+
+doc:
+       mkdir -p doc
+       javadoc -sourcepath src -classpath $(LIB_JARS):../../simgrid.jar -d doc psgsim
+
+test:
+       ./test.sh 
+
+clean: 
+       rm -rf classes doc outputs
+       
+# Help Target
+help:
+       @echo "The following are a valid targets for this Makefile:"
+       @echo "................ all (the default if no target is provided)"
+       @echo "................ compile"
+       @echo "................ doc"
+       @echo "................ test"
+       @echo "................ clean"
+       
index ecac88c..baac2ee 100755 (executable)
@@ -6,7 +6,7 @@ else
        eval ulimit -s 128
 fi
 echo '------------- Start execution..';
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator $1
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator $1
 echo '------------- done -------------';
 exit 0
 
index f5b7f09..7f6d61c 100755 (executable)
@@ -9,19 +9,19 @@ fi
 echo -e "\n";
 echo '------------- Execute the edaggregation example under PSG -------------';
 echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/edaggregationPSG.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/edaggregationPSG.txt
 echo -e "\n";
 echo '------------- Execute the edaggregation example under PS -------------';
 echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/edaggregation.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/edaggregation.txt
 echo -e "\n";
 echo '------------- Execute the chord example under PSG -------------';
 echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/chordPSG.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/chordPSG.txt
 echo -e "\n";
 echo '------------- Execute the chord example under PS -------------';
 echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/chord.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/chord.txt
 echo -e "\n";
 echo '------------- Compare the 2 results PS and PSG -------------';
 echo -e "\n";