You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Lei Wang (JIRA)" <ji...@apache.org> on 2019/08/09 06:20:00 UTC

[jira] [Created] (EXEC-110) Two issues in the tutorial of commons-exec

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)