vault.bat 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @echo off
  2. SETLOCAL
  3. rem Author: Gregory Charles, JBoss Community Member
  4. rem Date: January 24, 2012
  5. set DIRNAME="%~dp0"
  6. call :DeQuote DIRNAME
  7. set PROGNAME=%0
  8. rem Setup JBOSS_HOME
  9. set JBOSS_HOME=%DIRNAME%\..
  10. rem Setup the JVM
  11. IF NOT DEFINED JAVA (
  12. IF DEFINED JAVA_HOME (
  13. set JAVA="%JAVA_HOME%\bin\java"
  14. ) ELSE (
  15. set JAVA=java
  16. )
  17. )
  18. IF NOT DEFINED MODULEPATH (
  19. set MODULEPATH="%JBOSS_HOME%\modules"
  20. call :DeQuote MODULEPATH
  21. )
  22. rem Display our environment
  23. echo =========================================================================
  24. echo.
  25. echo JBoss Vault
  26. echo.
  27. echo JBOSS_HOME: %JBOSS_HOME%
  28. echo.
  29. echo JAVA: %JAVA%
  30. echo.
  31. echo =========================================================================
  32. echo.
  33. %JAVA% -jar %JBOSS_HOME%\jboss-modules.jar -mp %MODULEPATH% org.jboss.as.vault-tool %*
  34. ENDLOCAL
  35. :END
  36. goto :EOF
  37. :DeQuote
  38. for /f "delims=" %%A in ('echo %%%1%%') do set %1=%%~A
  39. goto :EOF
  40. :EOF