Skip to content
Browse files

GRAILS-9297 - support version specific agent cache dirs

This commit does not include the necessary Windows batch file changes.
  • Loading branch information...
1 parent 9599322 commit d80780baad5746744cb88249507ac640559e224e @jeffbrown jeffbrown committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 grails-resources/src/grails/home/bash/startGrails
View
12 grails-resources/src/grails/home/bash/startGrails
@@ -179,12 +179,12 @@ if $cygwin ; then
AGENT_GRAILS_HOME=`cygpath --windows "$GRAILS_HOME"`
fi
-SPRINGLOADED_PARAMS="profile=grails"
-if [ -n "$GRAILS_AGENT_CACHE_DIR" ]; then
- SPRINGLOADED_PARAMS="$SPRINGLOADED_PARAMS;cacheDir=$GRAILS_AGENT_CACHE_DIR"
- if [ ! -d "$GRAILS_AGENT_CACHE_DIR" ]; then
- mkdir -p $GRAILS_AGENT_CACHE_DIR
- fi
+if [ -z "$GRAILS_AGENT_CACHE_DIR" ]; then
+ GRAILS_AGENT_CACHE_DIR=~/.grails/@grails.version@/
+fi
+SPRINGLOADED_PARAMS="profile=grails;cacheDir=$GRAILS_AGENT_CACHE_DIR"
+if [ ! -d "$GRAILS_AGENT_CACHE_DIR" ]; then
+ mkdir -p $GRAILS_AGENT_CACHE_DIR
fi
# Process JVM args

0 comments on commit d80780b

Please sign in to comment.
Something went wrong with that request. Please try again.