Open
Description
Shell script generated with useWildcardClassPath=true
is not working properly on Git Bash command-line. (MINGW64
).
Symptoms:
- When trying to run project on a
cygwin
console i get:Error: Could not find or load main class
- The Windows
bat
works fine and the shell script executes fine on Linux machine. - The shell script works fine on Git Bash when using:
useWildcardClassPath=false
After some investigation I've found that the issue is related to the wildcard in path and the fact that cygpath
conversion is actually not invoked and for some reasons Unix-style CLASSPATH
is ok without wildcard, but with wildcard it is not.
Change from:
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
Darwin*) darwin=true
To:
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) cygwin=true ;;
Darwin*) darwin=true
Solves the issue.
Can you incorporate support for git-bash (MINGW64)?
It seems more and more popular nowadays.
Metadata
Metadata
Assignees
Labels
No labels