From c79889e662cf7c93cc0f32c04659ceb10d0d2404 Mon Sep 17 00:00:00 2001 From: Martin Bergljung Date: Thu, 30 Apr 2015 08:42:19 +0100 Subject: [PATCH] Added run.bat files to archetypes --- .../resources/archetype-resources/run.bat | 15 ++++++++++++++ .../resources/archetype-resources/run.bat | 19 ++++++++++++++++++ .../main/resources/archetype-resources/run.sh | 6 ++++-- .../resources/archetype-resources/run.bat | 20 +++++++++++++++++++ .../main/resources/archetype-resources/run.sh | 5 +++-- 5 files changed, 61 insertions(+), 4 deletions(-) create mode 100644 archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat create mode 100644 archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.bat create mode 100644 archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat new file mode 100644 index 00000000..31d8924d --- /dev/null +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat @@ -0,0 +1,15 @@ +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: Dev environment startup script for Alfresco Community :: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +@echo off + +set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\1.2.3.RELEASE\springloaded-1.2.3.RELEASE.jar + +if not exist %springloadedfile% ( + mvn validate -Psetup +) + +set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G -XX:PermSize=300m + +mvn install -Prun -nsu +:: mvn install -Prun diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.bat new file mode 100644 index 00000000..f9c57f5a --- /dev/null +++ b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.bat @@ -0,0 +1,19 @@ +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: Dev environment startup script for Alfresco Community. :: +:: :: +:: Downloads the spring-loaded lib if not existing and :: +:: runs the Repo AMP applied to Alfresco WAR. :: +:: Note. the Share WAR is not deployed. :: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +@echo off + +set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\1.2.3.RELEASE\springloaded-1.2.3.RELEASE.jar + +if not exist %springloadedfile% ( + mvn validate -Psetup +) + +set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G -XX:PermSize=300m + +mvn integration-test -Pamp-to-war -nsu +:: mvn integration-test -Pamp-to-war diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.sh b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.sh index bd250ab3..745abe3c 100755 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.sh +++ b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.sh @@ -1,9 +1,11 @@ #!/bin/bash -# Downloads the spring-loaded lib if not existing and runs repository AMP +# Downloads the spring-loaded lib if not existing and +# runs the Repo AMP applied to Alfresco WAR. +# Note. the Share WAR is not deployed. springloadedfile=~/.m2/repository/org/springframework/springloaded/@@springloaded.version@@/springloaded-@@springloaded.version@@.jar if [ ! -f $springloadedfile ]; then mvn validate -Psetup fi -MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn integration-test -Pamp-to-war \ No newline at end of file +MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn integration-test -Pamp-to-war diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat new file mode 100644 index 00000000..dae73735 --- /dev/null +++ b/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat @@ -0,0 +1,20 @@ +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: Dev environment startup script for Alfresco Community. :: +:: :: +:: Downloads the spring-loaded lib if not existing and :: +:: runs the Share AMP applied to Share WAR. :: +:: Note. requires Alfresco.war to be running in another :: +:: Tomcat on port 8080. :: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +@echo off + +set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\1.2.3.RELEASE\springloaded-1.2.3.RELEASE.jar + +if not exist %springloadedfile% ( + mvn validate -Psetup +) + +set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G -XX:PermSize=300m + +mvn integration-test -Pamp-to-war -nsu +:: mvn integration-test -Pamp-to-war diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.sh b/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.sh index 87ef1939..2146adfd 100755 --- a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.sh +++ b/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.sh @@ -1,9 +1,10 @@ #!/bin/bash -# Downloads the spring-loaded lib if not existing and runs the Share AMP +# Downloads the spring-loaded lib if not existing and runs the Share AMP applied to Share WAR +# Note. requires Alfresco.war to be running in another Tomcat on port 8080 springloadedfile=~/.m2/repository/org/springframework/springloaded/@@springloaded.version@@/springloaded-@@springloaded.version@@.jar if [ ! -f $springloadedfile ]; then mvn validate -Psetup fi -MAVEN_OPTS="-javaagent:$springloadedfile -noverify" mvn integration-test -Pamp-to-war \ No newline at end of file +MAVEN_OPTS="-javaagent:$springloadedfile -noverify" mvn integration-test -Pamp-to-war