Permalink
Browse files

remove some of the duplication of commands

  • Loading branch information...
1 parent 826be14 commit 8fdd572cf8d0c320d175753c11d926723899e3bb @robelsner robelsner committed Mar 27, 2012
Showing with 5 additions and 7 deletions.
  1. +5 −7 grails-resources/src/grails/home/bash/startGrails
View
12 grails-resources/src/grails/home/bash/startGrails
@@ -182,16 +182,14 @@ if $cygwin ; then
[ -n "$GRAILS_HOME" ] &&
AGENT_GRAILS_HOME=`cygpath --windows "$GRAILS_HOME"`
fi
-# Process JVM args
-AGENT_STRING="-javaagent:$AGENT_GRAILS_HOME/$AGENT_LIBRARY -noverify -Dspringloaded=profile=grails"
-
+AGENT_GRAILS_JAR=$AGENT_GRAILS_HOME/$AGENT_LIBRARY
# Fix the mingw bash shell not recognizing the agent jar path
if $mingw ; then
- AGENT_GRAILS_JAR=`cmd //C echo $AGENT_GRAILS_HOME/$AGENT_LIBRARY`
- [ -n "$GRAILS_HOME" ] &&
- AGENT_STRING=`echo "-javaagent:$AGENT_GRAILS_JAR -noverify -Dspringloaded=profile=grails"`
+ [ -n "$GRAILS_HOME" ] &&
+ AGENT_GRAILS_JAR=`cmd //C echo $AGENT_GRAILS_HOME/$AGENT_LIBRARY`
fi
-
+# Process JVM args
+AGENT_STRING="-javaagent:$AGENT_GRAILS_JAR -noverify -Dspringloaded=profile=grails"
CMD_LINE_ARGS=""
DISABLE_RELOADING=false

0 comments on commit 8fdd572

Please sign in to comment.