From 7074483888dbdd7f22f1e96ef5938b0116feaf41 Mon Sep 17 00:00:00 2001 From: haocao Date: Wed, 23 Nov 2016 10:28:14 +0800 Subject: [PATCH] Add scripts into elastic job cloud example. --- .../src/main/resources/assembly/assembly.xml | 5 +++++ .../src/main/resources/script/demo.bat | 1 + .../src/main/resources/script/demo.sh | 2 ++ 3 files changed, 8 insertions(+) create mode 100755 elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.bat create mode 100755 elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.sh diff --git a/elastic-job-example/elastic-job-example-cloud/src/main/resources/assembly/assembly.xml b/elastic-job-example/elastic-job-example-cloud/src/main/resources/assembly/assembly.xml index b76c8f1c77..188c0fcd7f 100644 --- a/elastic-job-example/elastic-job-example-cloud/src/main/resources/assembly/assembly.xml +++ b/elastic-job-example/elastic-job-example-cloud/src/main/resources/assembly/assembly.xml @@ -9,6 +9,11 @@ bin 0755 + + src/main/resources/script + script + 0755 + diff --git a/elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.bat b/elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.bat new file mode 100755 index 0000000000..5e077b15d8 --- /dev/null +++ b/elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.bat @@ -0,0 +1 @@ +@echo test %* \ No newline at end of file diff --git a/elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.sh b/elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.sh new file mode 100755 index 0000000000..7c67ff77af --- /dev/null +++ b/elastic-job-example/elastic-job-example-cloud/src/main/resources/script/demo.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo sharding execution context is $* \ No newline at end of file