[jbosstools-users] How to execute jboss-cli.bat command in java ProcessBuilder
Max Rydahl Andersen
jbosstools-users at lists.jboss.org
Wed Jan 14 06:52:06 EST 2015
This is not really the forum for it but I'll bite.
Dealing with .bat files are a bitch (and one of the reasons jboss tools don't launch servers via shell nor batch scripts), but thats a nother story.
I believe you need to pass each argument as individual strings, see like:
+*ProcessBuilder pb = new ProcessBuilder ( "jboss-cli.bat", "--connect", "--command","deploy", "--force", "+C:\\Users\\me\\git\\test\\Test\\build\\libs\\TestEAR.++ear+" );*+
+*
*+
Posted by forums
Original post: https://developer.jboss.org/message/915898#915898
More information about the jbosstools-users
mailing list