Permalink
Browse files

Added script that don't require jrebel PR #734

  • Loading branch information...
1 parent a700f84 commit a5a9c5f540309a050987b812c51a6d781094d3e9 @tijsrademakers tijsrademakers committed Nov 30, 2015
Showing with 51 additions and 0 deletions.
  1. +27 −0 scripts/start-dev-tomcat-no-jrebel.sh
  2. +12 −0 scripts/start-explorer-no-jrebel.sh
  3. +12 −0 scripts/start-rest-no-jrebel.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+if [[ -z "$TOMCAT_HOME" ]]
+then
+
+ echo ""
+ echo "Cannot boot Activiti REST web application : TOMCAT_HOME is not set"
+ echo ""
+
+else
+
+ echo ""
+ echo "TOMCAT_HOME = $TOMCAT_HOME"
+ echo ""
+
+ ORIGINAL_FOLDER=$(pwd)
+ export CATALINA_OPTS="-Xms521M -Xmx1024M -noverify -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
+ cd $TOMCAT_HOME
+ rm -rf conf/tomcat-users.xml
+ cp $ORIGINAL_FOLDER/tomcat-users.xml conf/
+ rm -r webapps/activiti*
+ cd bin
+ chmod +x *.sh
+ ./catalina.sh run
+
+fi
+
+
@@ -0,0 +1,12 @@
+#!/bin/bash
+export MAVEN_OPTS="-Xms512M -Xmx1024M -XX:MaxPermSize=128M -noverify -Xdebug -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
+cd ..
+mvn -PbuildWebappDependencies clean install
+STATUS=$?
+if [ $STATUS -eq 0 ]
+then
+ cd modules/activiti-webapp-explorer2
+ mvn -Dfile.encoding=UTF-8 clean package tomcat7:run
+else
+ echo "Build failure in dependent project. Cannot boot Activiti Explorer."
+fi
@@ -0,0 +1,12 @@
+#!/bin/bash
+export MAVEN_OPTS="-Xms521M -Xmx1024M -XX:MaxPermSize=256M -noverify -Xdebug -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n"
+cd ..
+mvn -T 1C -PbuildRestappDependencies clean install
+STATUS=$?
+if [ $STATUS -eq 0 ]
+then
+ cd modules/activiti-webapp-rest2
+ mvn -Dfile.encoding=UTF-8 clean package tomcat7:run
+else
+ echo "Build failure in dependent project. Cannot boot Activiti Rest."
+fi

0 comments on commit a5a9c5f

Please sign in to comment.