shell+maven.bat 572 Bytes
Newer Older
rwm's avatar
rwm committed
1 2 3 4 5 6 7 8
SET MVN=%USERPROFILE%\Tools\apache-maven-3.2.3\bin
IF EXIST "%MVN%" GOTO JAV

SET MVN=%USERPROFILE%\Tools\apache-maven-3.3.3\bin
IF EXIST "%MVN%" GOTO JAV

:JAV
SET PATH=%PATH%;%MVN%
R.W.Majeed's avatar
R.W.Majeed committed
9 10 11 12 13 14 15

SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_17
IF EXIST "%JAVA_HOME%" GOTO OK

SET JAVA_HOME=c:\Program Files\Java\jdk1.8.0_25
IF EXIST "%JAVA_HOME%" GOTO OK

rwm's avatar
rwm committed
16 17 18
SET JAVA_HOME=c:\Program Files\Java\jdk1.8.0_45
IF EXIST "%JAVA_HOME%" GOTO OK

R.W.Majeed's avatar
R.W.Majeed committed
19 20 21 22 23 24 25 26 27 28 29
SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_35
IF EXIST "%JAVA_HOME%" GOTO OK

ECHO JAVA_HOME not found!
PAUSE 
EXIT

:OK
REM cd psd
START CMD /K