This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mvnw usage optional on java presence
- Loading branch information
Ozzy Osborne
committed
Sep 9, 2019
1 parent
6b03d88
commit 22ddd81
Showing
6 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
experimental/java-spring-boot2-liberty/image/project/.appsody-init.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
mvnw install -Denforcer.skip=true | ||
setlocal | ||
set JAVA_FOUND=0 | ||
where java >nul 2>nul | ||
if %ERRORLEVEL% EQU 0 set JAVA_FOUND=1 | ||
if defined JAVA_HOME set JAVA_FOUND=1 | ||
if "%JAVA_FOUND%"==1 mvnw install -Denforcer.skip=true |
5 changes: 4 additions & 1 deletion
5
experimental/java-spring-boot2-liberty/image/project/.appsody-init.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
#!/bin/bash | ||
./mvnw install -Denforcer.skip=true | ||
which java 2>&1 >/dev/null ; JAVA_KNOWN=$? | ||
if [ ! -z "$JAVA_HOME" ] || [ $JAVA_KNOWN = "0" ]; then | ||
./mvnw install -Denforcer.skip=true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
mvnw install -Denforcer.skip=true | ||
setlocal | ||
set JAVA_FOUND=0 | ||
where java >nul 2>nul | ||
if %ERRORLEVEL% EQU 0 set JAVA_FOUND=1 | ||
if defined JAVA_HOME set JAVA_FOUND=1 | ||
if "%JAVA_FOUND%"==1 mvnw install -Denforcer.skip=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
#!/bin/bash | ||
./mvnw install -Denforcer.skip=true | ||
which java 2>&1 >/dev/null ; JAVA_KNOWN=$? | ||
if [ ! -z "$JAVA_HOME" ] || [ $JAVA_KNOWN = "0" ]; then | ||
./mvnw install -Denforcer.skip=true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
if not exist %SystemDrive%%HOMEPATH%\.m2\repository\ ( | ||
mkdir %SystemDrive%%HOMEPATH%\.m2\repository | ||
) | ||
mvnw install -q -f ./appsody-boot2-pom.xml | ||
setlocal | ||
set JAVA_FOUND=0 | ||
where java >nul 2>nul | ||
if %ERRORLEVEL% EQU 0 set JAVA_FOUND=1 | ||
if defined JAVA_HOME set JAVA_FOUND=1 | ||
if "%JAVA_FOUND%"==1 mvnw install -q -f ./appsody-boot2-pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters