123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- @echo off
- SETLOCAL
- rem Author: Gregory Charles, JBoss Community Member
- rem Date: January 24, 2012
- set DIRNAME="%~dp0"
- call :DeQuote DIRNAME
- set PROGNAME=%0
- rem Setup JBOSS_HOME
- set JBOSS_HOME=%DIRNAME%\..
- rem Setup the JVM
- IF NOT DEFINED JAVA (
- IF DEFINED JAVA_HOME (
- set JAVA="%JAVA_HOME%\bin\java"
- ) ELSE (
- set JAVA=java
- )
- )
- IF NOT DEFINED MODULEPATH (
- set MODULEPATH="%JBOSS_HOME%\modules"
- call :DeQuote MODULEPATH
- )
- rem Display our environment
- echo =========================================================================
- echo.
- echo JBoss Vault
- echo.
- echo JBOSS_HOME: %JBOSS_HOME%
- echo.
- echo JAVA: %JAVA%
- echo.
- echo =========================================================================
- echo.
- %JAVA% -jar %JBOSS_HOME%\jboss-modules.jar -mp %MODULEPATH% org.jboss.as.vault-tool %*
- ENDLOCAL
- :END
- goto :EOF
- :DeQuote
- for /f "delims=" %%A in ('echo %%%1%%') do set %1=%%~A
- goto :EOF
- :EOF
|