1 Reply Latest reply on Jan 14, 2015 6:52 AM by Max Rydahl Andersen

    How to execute jboss-cli.bat command in java ProcessBuilder

    Sujtih PS Newbie

      I need to execute jboss-cli.bat --connect --command=\"deploy --force C:\Users\me\git\test\Test\build\libs\TestEAR.ear this command in java ProcessBuilder .

       

      I tried

          ProcessBuilder pb = new ProcessBuilder ( "jboss-cli.bat", "--connect", "--command","\"deploy --force C:\\Users\\me\\git\\test\\Test\\build\\libs\\TestEAR.ear\"" );

       

      But it is not executing correctly.