Skip to content

Commit

Permalink
mvnw minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfboys committed Oct 6, 2023
1 parent 898425b commit 6920452
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions streampark-console/streampark-console-service/src/main/assembly/bin/mvnw
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -228,21 +228,21 @@ else
fi
else
log "Falling back to using Java to download"
javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperHelper.java"
javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperHelper.class"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaSource=$(cygpath --path --windows "$javaSource")
javaClass=$(cygpath --path --windows "$javaClass")
fi
if [ -e "$javaSource" ]; then
if [ ! -e "$javaClass" ]; then
log " - Compiling MavenWrapperDownloader.java ..."
log " - Compiling MavenWrapperHelper.java ..."
("$JAVA_HOME/bin/javac" "$javaSource")
fi
if [ -e "$javaClass" ]; then
log " - Running MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
log " - Running MavenWrapperHelper.java ..."
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperHelper "download" "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
fi
fi
fi
Expand Down

0 comments on commit 6920452

Please sign in to comment.