-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
109 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
:: 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 | ||
@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 | ||
IF "%MAVEN_OPTS%" == "" ( | ||
ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you | ||
SET MAVEN_OPTS=-Xms256m -Xmx2G -XX:PermSize=300m | ||
) | ||
|
||
set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G | ||
|
||
mvn integration-test -Pamp-to-war -nsu | ||
:: mvn integration-test -Pamp-to-war | ||
ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' | ||
mvn clean install -Pamp-to-war |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/bin/bash | ||
# 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/1.2.3.RELEASE/springloaded-1.2.3.RELEASE.jar | ||
|
||
if [ ! -f $springloadedfile ]; then | ||
mvn validate -Psetup | ||
if [[ -z ${MAVEN_OPTS} ]]; then | ||
echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; | ||
MAVEN_OPTS="-Xms256m -Xmx1524m -XX:PermSize=300m" | ||
fi | ||
|
||
MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G" mvn integration-test -Pamp-to-war | ||
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; | ||
mvn clean install -Pamp-to-war |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,3 @@ | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
:: 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 | ||
@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 | ||
|
||
mvn integration-test -Pamp-to-war -nsu | ||
:: mvn integration-test -Pamp-to-war | ||
mvn clean install -Pamp-to-war |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#!/bin/bash | ||
# 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/1.2.3.RELEASE/springloaded-1.2.3.RELEASE.jar | ||
# Note. This script requires Alfresco.war to be running in another Tomcat on port 8080 | ||
|
||
if [ ! -f $springloadedfile ]; then | ||
mvn validate -Psetup | ||
fi | ||
if [[ -z ${MAVEN_OPTS} ]]; then | ||
echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; | ||
|
||
# Downloads the spring-loaded lib if not existing and runs the Share AMP applied to Share WAR | ||
springloadedfile=~/.m2/repository/org/springframework/springloaded/1.2.5.RELEASE/springloaded-1.2.5.RELEASE.jar | ||
|
||
MAVEN_OPTS="-javaagent:$springloadedfile -noverify" mvn integration-test -Pamp-to-war | ||
if [ ! -f $springloadedfile ]; then | ||
mvn validate -Psetup | ||
fi | ||
|
||
# Spring loaded can be used with the Share AMP project in 5.1 | ||
# (i.e. it does not have the same problem as Repo AMP and AIO) | ||
MAVEN_OPTS="-javaagent:$springloadedfile -noverify" | ||
fi | ||
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; | ||
mvn clean install -Pamp-to-war |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.