I am using Java to automate a build. I would like to run an 'scons' command in the current directory in which the build is being performed. How can I do this with Java? I have tried
Runtime.getRuntime().exec(CurrentDir + commandString)
This didn't work. Any ideas would be greatly appreciated.
From stackoverflow
-
You must use the Java 5 API ProcessBuilder to change the current directory for a new process.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.