Skip to content

Commit

Permalink
Added script that don't require jrebel PR Activiti#734
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed Nov 30, 2015
1 parent a700f84 commit a5a9c5f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripts/start-dev-tomcat-no-jrebel.sh
Original file line number Diff line number Diff line change
@@ -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


12 changes: 12 additions & 0 deletions scripts/start-explorer-no-jrebel.sh
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions scripts/start-rest-no-jrebel.sh
Original file line number Diff line number Diff line change
@@ -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.