-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from sabre1041/windows
Windows support
- Loading branch information
Showing
6 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
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
0
src/main/bash/jcliff → src/main/scripts/jcliff
100755 → 100644
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@echo off | ||
|
||
setlocal EnableDelayedExpansion | ||
|
||
set NOPAUSE=true | ||
|
||
if "%JBOSS_HOME%" == "" ( | ||
echo No JBOSS_HOME provided. Aborting... | ||
EXIT /b 1 | ||
) | ||
|
||
if "%JCLIFF_HOME%" == "" ( | ||
echo No JCLIFF_HOME provided. Aborting... | ||
EXIT /b 1 | ||
) | ||
|
||
if not exist "%JCLIFF_HOME%" ( | ||
echo Provided JCLIFF_HOME does not exist: %JCLIFF_HOME% | ||
EXIT /b 2 | ||
) | ||
|
||
set JBOSS_CONTROLLER=%JBOSS_CONTROLLER_HOST%:%JBOSS_CONTROLLER_PORT% | ||
|
||
set CONTROLLER= | ||
|
||
if not "%JBOSS_CONTROLLER%" == ":" ( | ||
set CONTROLLER=--controller=%JBOSS_CONTROLLER% | ||
) | ||
|
||
set JBOSS_CLI_TIMEOUT=30000 | ||
|
||
|
||
if "%JCLIFF_RULES_DIR%" == "" ( | ||
set JCLIFF_RULES_DIR=%JCLIFF_HOME%\rules | ||
) | ||
|
||
if not "%JAVA_HOME%" == "" ( | ||
set JAVA=%JAVA_HOME%\bin\java.exe | ||
) else ( | ||
For /F "Tokens=*" %%I in ('where java') Do Set JAVA=%%I | ||
) | ||
|
||
if not exist "%JAVA%" ( | ||
echo Invalid path to Java executable: %JAVA% | ||
EXIT /b 3 | ||
) | ||
|
||
|
||
if "%JCLIFF_DEPS_DIR%" == "" ( | ||
set JCLIFF_DEPS_DIR=%JCLIFF_HOME% | ||
) | ||
|
||
set CLASSPATH= | ||
for /R %JCLIFF_HOME% %%a in (*.jar) do ( | ||
set CLASSPATH=%%a;!CLASSPATH! | ||
) | ||
|
||
set CLASSPATH=!CLASSPATH! | ||
|
||
call "%JAVA%" -classpath "!CLASSPATH!" com.redhat.jcliff.Main --cli="%JBOSS_HOME%\bin\jboss-cli.bat" %CONTROLLER% --timeout="%JBOSS_CLI_TIMEOUT%" --ruledir="%JCLIFF_RULES_DIR%" %* |