changeset 353:15061909f4da

add scripts
author nozomi
date Mon, 25 Sep 2017 19:52:20 +0900
parents 7193845c26cb
children ee69ae1ab1a2
files build.gradle scripts/LogupdateTest.sh scripts/killLogupdate.sh
diffstat 3 files changed, 22 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Mon Sep 25 19:00:06 2017 +0900
+++ b/build.gradle	Mon Sep 25 19:52:20 2017 +0900
@@ -46,4 +46,18 @@
   }
 }
 
+task LogupdateTest(type: Jar) {
+    exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
+    baseName = "logupdateTest"
+    manifest {
+        attributes 'Main-Class': 'jp.ac.u_ryukyu.ie.cr.jungleNetwork.logupdate.LogupdateTest',
+                'Implementation-Title': 'LogupdateTet',
+                'Implementation-Description': 'Quickstart',
+                'Implementation-Version': version,
+                'Assembly-Date': new java.util.Date().toString()
 
+    }
+    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + sourceSets.test.output
+
+    with jar
+}
--- a/scripts/LogupdateTest.sh	Mon Sep 25 19:00:06 2017 +0900
+++ b/scripts/LogupdateTest.sh	Mon Sep 25 19:52:20 2017 +0900
@@ -1,4 +1,6 @@
-java -cp build/libs/Alice.jar alice.topology.manager.TopologyManager -host localhost -p 10000 -port 10001 --noKeepAlive &
+java -cp build/libs/logupdateTest-1.1.jar alice.topology.manager.TopologyManager -host localhost -p 10000 -port 10001 --noKeepAlive &
 sleep 3 
-java -cp jungle-core.1.1.jar jp.ac_u-ryukyu.junglenetworl.logupdate.logupdateTest -host localhost -p 10003 -port 10000  --noKeepAlive &
-java -cp jungle-core.1.1.jar jp.ac_u-ryukyu.junglenetworl.logupdate.logupdateTest -host localhost -p 10002 -port 10000 -write --noKeepAlive &
+java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10003 -port 10000  --noKeepAlive &
+java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10001 -port 10000  --noKeepAlive &
+sleep 3
+java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10002 -port 10000 -write --noKeepAlive 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/killLogupdate.sh	Mon Sep 25 19:52:20 2017 +0900
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ps agx | grep logupdate | grep -v grep | grep -v killLogupdate | perl -le 'while (<>){if (/(\d+)/){print "kill -9 $1"}}' | sh