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/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