From 977be76bf6ea6b4b95752a58cfc331953d5962d0 Mon Sep 17 00:00:00 2001 From: ejlchappin Date: Mon, 4 Feb 2013 14:35:18 +0100 Subject: [PATCH 1/2] shell scripts for windows --- shellscripts/TEMPLATE_emlabConfig.bat | 9 +++++++++ shellscripts/compileModel.bat | 16 ++++++++++++++++ shellscripts/setupAgentSpring.bat | 18 ++++++++++++++++++ shellscripts/startAgentSpring.bat | 13 +++++++++++++ shellscripts/startModel.bat | 13 +++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 shellscripts/TEMPLATE_emlabConfig.bat create mode 100644 shellscripts/compileModel.bat create mode 100644 shellscripts/setupAgentSpring.bat create mode 100644 shellscripts/startAgentSpring.bat create mode 100644 shellscripts/startModel.bat diff --git a/shellscripts/TEMPLATE_emlabConfig.bat b/shellscripts/TEMPLATE_emlabConfig.bat new file mode 100644 index 00000000..50cde2c1 --- /dev/null +++ b/shellscripts/TEMPLATE_emlabConfig.bat @@ -0,0 +1,9 @@ +:##################################### +:## Set EMLab and AgentSpringHome ## +:## or uncomment lines for default ## +:## values. ## +:##################################### +:Windows format +@echo off +set emlabHome=D:\emlab +set agentSpringHome=D:\AgentSpring \ No newline at end of file diff --git a/shellscripts/compileModel.bat b/shellscripts/compileModel.bat new file mode 100644 index 00000000..858ae1a5 --- /dev/null +++ b/shellscripts/compileModel.bat @@ -0,0 +1,16 @@ +@echo off + +if exist "emlabConfig.bat" ( +call emlabConfig.bat +) else ( +echo Define emlabConfig.bat, by changing the template. +pause +exit +) + + +set modelhome=%emlabHome%\emlab-model +cd %modelhome% +call mvn clean install +cd %d13nhome%\shellscripts + diff --git a/shellscripts/setupAgentSpring.bat b/shellscripts/setupAgentSpring.bat new file mode 100644 index 00000000..df7a3b31 --- /dev/null +++ b/shellscripts/setupAgentSpring.bat @@ -0,0 +1,18 @@ +@echo off + +if exist "emlabConfig.bat" ( +call emlabConfig.bat +) else ( +echo Define emlabConfig.bat, by changing the template. +pause +exit +) + +cd %agentspringHome%\agentspring-facade +call mvn clean install +cd %agentspringHome%\agentspring-face +call mvn clean install +cd %agentspringHome%\agentspring-engine +call mvn clean install + +cd %emlabHome%\shellscripts \ No newline at end of file diff --git a/shellscripts/startAgentSpring.bat b/shellscripts/startAgentSpring.bat new file mode 100644 index 00000000..75975fcb --- /dev/null +++ b/shellscripts/startAgentSpring.bat @@ -0,0 +1,13 @@ +@echo off + +if exist "emlabConfig.bat" ( +call emlabConfig.bat +) else ( +echo Define emlabConfig.bat, by changing the template. +pause +exit +) + +cd %agentspringHome%/agentspring-face/ +call mvn jetty:run + diff --git a/shellscripts/startModel.bat b/shellscripts/startModel.bat new file mode 100644 index 00000000..743575a3 --- /dev/null +++ b/shellscripts/startModel.bat @@ -0,0 +1,13 @@ +@echo off + +if exist "emlabConfig.bat" ( +call emlabConfig.bat +) else ( +echo Define emlabConfig.bat, by changing the template. +pause +exit +) + +cd %emlabHome%\emlab-model +call mvn exec:java +cd %emlabHome%\shellscripts From b49661554b0d76ba029eccb5436b4715953b372e Mon Sep 17 00:00:00 2001 From: ejlchappin Date: Wed, 19 Jun 2013 08:52:03 +0200 Subject: [PATCH 2/2] committing local changes. --- .project | 17 +++++++++++++++++ .settings/org.eclipse.m2e.core.prefs | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 .project create mode 100644 .settings/org.eclipse.m2e.core.prefs diff --git a/.project b/.project new file mode 100644 index 00000000..a09855c9 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + emlab-generation-parent + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 00000000..f897a7f1 --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1