mojohaus / appassembler

https://www.mojohaus.org/appassembler/
MIT License
93 stars 49 forks source link

Specifying endorsedDir breaks script on MinGW #55

Open harawata opened 7 years ago

harawata commented 7 years ago

Hi,

I am a maintainer of MyBatis Migrations and I recently added endorsedDir to the plugin configuration to support a new feature. The generated launcher script works fine on my macOS, of course, but a user reported that it does not work on MinGW environment.

The following part of the script appends endorsed dir and it makes classpath string unrecognizable, I guess.

ENDORSED_DIR=
if [ -n "$ENDORSED_DIR" ] ; then
  CLASSPATH=$BASEDIR/$ENDORSED_DIR/*:$CLASSPATH
fi

The full script is in the 3.3.0-SNAPSHOT .zip package. Please see the pom.xml for the plugin configuration.

Thanks in advance, Iwao