Lei Wang created EXEC-110:
-----------------------------
Summary: Two issues in the tutorial of commons-exec
Key: EXEC-110
URL: https://issues.apache.org/jira/browse/EXEC-110
Project: Commons Exec
Issue Type: Bug
Affects Versions: 1.3
Reporter: Lei Wang
I found two obvious issues in the tutoral of commons-exec in the section of
"Unblock Your Execution".
with the provided sample code of "commandLine.setSubstitutionMap(map);", the
variable "commandLine" is different with "cmdLine" as abouve.
the code "int exitValue = resultHandler.waitFor();" also has a mistake. because
with the api definition, the method of "waitFor()" have the "void" return type,
maybe you want to invoke "getExitValue()" which will return int type.
attach the links for your refarance.
http://commons.apache.org/proper/commons-exec/tutorial.html
http://commons.apache.org/proper/commons-exec/apidocs/index.html
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)