Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

GRAILS-8271 #117

Closed
wants to merge 4 commits into from

4 participants

@thatsnotright

Updated startGrails script to account for MingW changes.

@thatsnotright

I reworked the order to clean up some issues

@visoft

Any chance of getting this merged?

@thatsnotright

I haven't had much luck getting feedback from Burt, who has the issue assigned in the Grails JIRA. Maybe you can help make some noise by voting on the JIRA issue.

http://jira.grails.org/browse/GRAILS-8271

@visoft

Voted the other day :) I added a comment to the JIRA issue as well. Thanks for your work on this @thatsnotright.

@thatsnotright

You're welcome. If you find any other problems let me know.

@lhotari
Collaborator

Closing outdated pull requests.

@lhotari lhotari closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 2 deletions.
  1. +12 −2 grails-resources/src/grails/home/bash/startGrails
View
14 grails-resources/src/grails/home/bash/startGrails
@@ -36,11 +36,14 @@ earlyInit
# OS specific support (must be 'true' or 'false').
cygwin=false;
darwin=false;
+mingw=false;
case "`uname`" in
CYGWIN*)
cygwin=true
;;
-
+ MINGW*)
+ mingw=true
+ ;;
Darwin*)
darwin=true
;;
@@ -174,12 +177,19 @@ fi
# Fix the cygwin agent issue
AGENT_GRAILS_HOME=$GRAILS_HOME
+AGENT_LIBRARY="lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-@spring.loaded.version@.jar"
if $cygwin ; then
[ -n "$GRAILS_HOME" ] &&
AGENT_GRAILS_HOME=`cygpath --windows "$GRAILS_HOME"`
fi
+AGENT_GRAILS_JAR=$AGENT_GRAILS_HOME/$AGENT_LIBRARY
+# Fix the mingw bash shell not recognizing the agent jar path
+if $mingw ; then
+ [ -n "$AGENT_GRAILS_HOME" ] &&
+ AGENT_GRAILS_JAR=`cmd //C echo $AGENT_GRAILS_HOME/$AGENT_LIBRARY`
+fi
# Process JVM args
-AGENT_STRING="-javaagent:$AGENT_GRAILS_HOME/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-@spring.loaded.version@.jar -noverify -Dspringloaded=profile=grails"
+AGENT_STRING="-javaagent:$AGENT_GRAILS_JAR -noverify -Dspringloaded=profile=grails"
CMD_LINE_ARGS=""
DISABLE_RELOADING=false
Something went wrong with that request. Please try again.