Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enable build for all Java examples.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Jan 2013 23:34:50 +0000 (00:34 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Jan 2013 23:35:11 +0000 (00:35 +0100)
26 files changed:
buildtools/Cmake/DefinePackages.cmake
buildtools/Cmake/MakeExe.cmake
examples/java/async/CMakeLists.txt [new file with mode: 0644]
examples/java/bittorrent/CMakeLists.txt
examples/java/chord/CMakeLists.txt [new file with mode: 0644]
examples/java/cloud/CMakeLists.txt [new file with mode: 0644]
examples/java/commTime/CMakeLists.txt [new file with mode: 0644]
examples/java/io/CMakeLists.txt [new file with mode: 0644]
examples/java/kademlia/CMakeLists.txt [new file with mode: 0644]
examples/java/master_slave_bypass/CMakeLists.txt [new file with mode: 0644]
examples/java/master_slave_kill/CMakeLists.txt [new file with mode: 0644]
examples/java/masterslave/CMakeLists.txt [new file with mode: 0644]
examples/java/migration/CMakeLists.txt [new file with mode: 0644]
examples/java/mutualExclusion/CMakeLists.txt [new file with mode: 0644]
examples/java/mutualExclusion/Coordinator.java [moved from examples/java/mutualExclusion/centralized/Coordinator.java with 100% similarity]
examples/java/mutualExclusion/GrantTask.java [moved from examples/java/mutualExclusion/centralized/GrantTask.java with 100% similarity]
examples/java/mutualExclusion/MutexCentral.java [moved from examples/java/mutualExclusion/centralized/MutexCentral.java with 100% similarity]
examples/java/mutualExclusion/Node.java [moved from examples/java/mutualExclusion/centralized/Node.java with 100% similarity]
examples/java/mutualExclusion/ReleaseTask.java [moved from examples/java/mutualExclusion/centralized/ReleaseTask.java with 100% similarity]
examples/java/mutualExclusion/RequestTask.java [moved from examples/java/mutualExclusion/centralized/RequestTask.java with 100% similarity]
examples/java/mutualExclusion/mutex_centralized_deployment.xml [moved from examples/java/mutualExclusion/centralized/mutex_centralized_deployment.xml with 100% similarity]
examples/java/pingPong/CMakeLists.txt [new file with mode: 0644]
examples/java/priority/CMakeLists.txt [new file with mode: 0644]
examples/java/startKillTime/CMakeLists.txt [new file with mode: 0644]
examples/java/suspend/CMakeLists.txt [new file with mode: 0644]
examples/java/tracing/CMakeLists.txt [new file with mode: 0644]

index b6376f4..ee8690e 100644 (file)
@@ -727,7 +727,24 @@ set(txt_files
   )
 
 set(EXAMPLES_CMAKEFILES_TXT
+  examples/java/CMakeLists.txt
+  examples/java/async/CMakeLists.txt
   examples/java/bittorrent/CMakeLists.txt
+  examples/java/chord/CMakeLists.txt
+  examples/java/cloud/CMakeLists.txt
+  examples/java/commTime/CMakeLists.txt
+  examples/java/io/CMakeLists.txt
+  examples/java/kademlia/CMakeLists.txt
+  examples/java/master_slave_bypass/CMakeLists.txt
+  examples/java/master_slave_kill/CMakeLists.txt
+  examples/java/masterslave/CMakeLists.txt
+  examples/java/migration/CMakeLists.txt
+  examples/java/mutualExclusion/CMakeLists.txt
+  examples/java/pingPong/CMakeLists.txt
+  examples/java/priority/CMakeLists.txt
+  examples/java/startKillTime/CMakeLists.txt
+  examples/java/suspend/CMakeLists.txt
+  examples/java/tracing/CMakeLists.txt
   examples/lua/CMakeLists.txt
   examples/msg/CMakeLists.txt
   examples/msg/actions/CMakeLists.txt
index bd69c83..7d704e9 100644 (file)
@@ -32,7 +32,23 @@ add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich-test/pt2pt)
 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/msg)
 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/msg/trace)
 
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/async)
 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/bittorrent)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/chord)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/cloud)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/commTime)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/io)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/kademlia)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/master_slave_bypass)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/master_slave_kill)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/masterslave)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/migration)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/mutualExclusion)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/pingPong)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/priority)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/startKillTime)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/suspend)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/java/tracing)
 
 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/properties)
 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/actions)
diff --git a/examples/java/async/CMakeLists.txt b/examples/java/async/CMakeLists.txt
new file mode 100644 (file)
index 0000000..98044f6
--- /dev/null
@@ -0,0 +1,42 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/AsyncTest.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/FinalizeTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Forwarder.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
+  )
+
+if(enable_java)
+  add_custom_target(java_async ALL
+    COMMENT "Building java_async..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_async SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/async.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/asyncDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/README
+  PARENT_SCOPE
+  )
index 8730ae2..c2f2803 100644 (file)
@@ -12,6 +12,7 @@ set(sources
 
 if(enable_java)
   add_custom_target(java_bittorrent ALL
+    COMMENT "Building java_bittorrent..."
     COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
                             -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
   add_dependencies(java_bittorrent SG_java_jar)
@@ -41,4 +42,3 @@ set(txt_files
   ${CMAKE_CURRENT_SOURCE_DIR}/generate.py
   PARENT_SCOPE
   )
-
diff --git a/examples/java/chord/CMakeLists.txt b/examples/java/chord/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8235967
--- /dev/null
@@ -0,0 +1,50 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/Chord.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/ChordTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Common.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/FindSuccessorAnswerTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/FindSuccessorTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/GetPredecessorAnswerTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/GetPredecessorTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Node.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/NotifyTask.java
+  )
+
+if(enable_java)
+  add_custom_target(java_chord ALL
+    COMMENT "Building java_chord..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_chord SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/chord.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/chord.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/chord10.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/chord100.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/chord1000.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/chord10000.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/chord90.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/cloud/CMakeLists.txt b/examples/java/cloud/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b06f6f9
--- /dev/null
@@ -0,0 +1,39 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/Cloud.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/FinalizeTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
+  )
+
+if(enable_java)
+  add_custom_target(java_cloud ALL
+    COMMENT "Building java_cloud..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_cloud SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/cloud.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/commTime/CMakeLists.txt b/examples/java/commTime/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0545440
--- /dev/null
@@ -0,0 +1,41 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/CommTimeTest.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/FinalizeTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
+  )
+
+if(enable_java)
+  add_custom_target(java_commTime ALL
+    COMMENT "Building java_commTime..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_commTime SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/commtime.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/commTimeDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/README
+  PARENT_SCOPE
+  )
diff --git a/examples/java/io/CMakeLists.txt b/examples/java/io/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0165381
--- /dev/null
@@ -0,0 +1,37 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/IO.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Node.java
+  )
+
+if(enable_java)
+  add_custom_target(java_io ALL
+    COMMENT "Building java_io..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_io SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/storage.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/kademlia/CMakeLists.txt b/examples/java/kademlia/CMakeLists.txt
new file mode 100644 (file)
index 0000000..18f6222
--- /dev/null
@@ -0,0 +1,48 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/Answer.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Bucket.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Common.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Contact.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/FindNodeAnswerTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/FindNodeTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Kademlia.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/KademliaTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Node.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/PingAnswerTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/PingTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/RoutingTable.java
+  )
+
+if(enable_java)
+  add_custom_target(java_kademlia ALL
+    COMMENT "Building java_kademlia..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_kademlia SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/kademlia.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/kademlia.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/master_slave_bypass/CMakeLists.txt b/examples/java/master_slave_bypass/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8b5003f
--- /dev/null
@@ -0,0 +1,40 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/FinalizeTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/MsBypass.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
+  )
+
+if(enable_java)
+  add_custom_target(java_master_slave_bypass ALL
+    COMMENT "Building java_master_slave_bypass..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_master_slave_bypass SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/bypass.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/platform.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/master_slave_kill/CMakeLists.txt b/examples/java/master_slave_kill/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fd8d8e6
--- /dev/null
@@ -0,0 +1,40 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/FinalizeTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/MsKill.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
+  )
+
+if(enable_java)
+  add_custom_target(java_master_slave_kill ALL
+    COMMENT "Building java_master_slave_kill..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_master_slave_kill SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/kill.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/platform.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/masterslave/CMakeLists.txt b/examples/java/masterslave/CMakeLists.txt
new file mode 100644 (file)
index 0000000..30ecd76
--- /dev/null
@@ -0,0 +1,43 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/FinalizeTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Forwarder.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Masterslave.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
+  )
+
+if(enable_java)
+  add_custom_target(java_masterslave ALL
+    COMMENT "Building java_masterslave..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_masterslave SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/masterslave.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/deploy.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/masterslaveDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/README
+  PARENT_SCOPE
+  )
diff --git a/examples/java/migration/CMakeLists.txt b/examples/java/migration/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1802795
--- /dev/null
@@ -0,0 +1,39 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/Emigrant.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Migration.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Policeman.java
+  )
+
+if(enable_java)
+  add_custom_target(java_migration ALL
+    COMMENT "Building java_migration..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_migration SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/migration.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/migrationDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/mutualExclusion/CMakeLists.txt b/examples/java/mutualExclusion/CMakeLists.txt
new file mode 100644 (file)
index 0000000..24a17fb
--- /dev/null
@@ -0,0 +1,43 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/Coordinator.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/GrantTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/MutexCentral.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Node.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/ReleaseTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/RequestTask.java
+  )
+
+if(enable_java)
+  add_custom_target(java_mutualExclusion ALL
+    COMMENT "Building java_mutualExclusion..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_mutualExclusion SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/mutualexclusion.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/mutex_centralized_deployment.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/ring3.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/pingPong/CMakeLists.txt b/examples/java/pingPong/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9de1cd6
--- /dev/null
@@ -0,0 +1,41 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/PingPongTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/PingPongTest.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Receiver.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Sender.java
+  )
+
+if(enable_java)
+  add_custom_target(java_pingPong ALL
+    COMMENT "Building java_pingPong..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_pingPong SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/pingpong.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/pingPongDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/README
+  PARENT_SCOPE
+  )
diff --git a/examples/java/priority/CMakeLists.txt b/examples/java/priority/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d961e0f
--- /dev/null
@@ -0,0 +1,38 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/Priority.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Test.java
+  )
+
+if(enable_java)
+  add_custom_target(java_priority ALL
+    COMMENT "Building java_priority..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_priority SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/priority.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/priorityDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/startKillTime/CMakeLists.txt b/examples/java/startKillTime/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fecb6c9
--- /dev/null
@@ -0,0 +1,42 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/StartKillTime.java
+  )
+
+if(enable_java)
+  add_custom_target(java_startKillTime ALL
+    COMMENT "Building java_startKillTime..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_startKillTime SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/startKillTime.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/deployment.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/deployment_kill.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/deployment_start.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/deployment_start_kill.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/suspend/CMakeLists.txt b/examples/java/suspend/CMakeLists.txt
new file mode 100644 (file)
index 0000000..38bf557
--- /dev/null
@@ -0,0 +1,39 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/DreamMaster.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/LazyGuy.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Suspend.java
+  )
+
+if(enable_java)
+  add_custom_target(java_suspend ALL
+    COMMENT "Building java_suspend..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_suspend SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/suspend.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/suspendDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  PARENT_SCOPE
+  )
diff --git a/examples/java/tracing/CMakeLists.txt b/examples/java/tracing/CMakeLists.txt
new file mode 100644 (file)
index 0000000..bc34cec
--- /dev/null
@@ -0,0 +1,41 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(sources
+  ${CMAKE_CURRENT_SOURCE_DIR}/PingPongTask.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Receiver.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/Sender.java
+  ${CMAKE_CURRENT_SOURCE_DIR}/TracingTest.java
+  )
+
+if(enable_java AND HAVE_TRACING)
+  add_custom_target(java_tracing ALL
+    COMMENT "Building java_tracing..."
+    COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
+                            -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
+  add_dependencies(java_tracing SG_java_jar)
+endif()
+
+set(tesh_files
+  ${tesh_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/tracingPingPong.tesh
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/tracingPingPongDeployment.xml
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  ${sources}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+set(txt_files
+  ${txt_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/README
+  PARENT_SCOPE
+  )