commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Puntev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (EXEC-105) Small mistakes in the documentation for Apache Commons Exec 1.3
Date Fri, 16 Feb 2018 13:49:00 GMT

     [ https://issues.apache.org/jira/browse/EXEC-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ivan Puntev updated EXEC-105:
-----------------------------
    Description: 
I want to apologize if this issue is not correctly formatted, but I am new into the issue
reporting.

On this page on the bottom - [http://commons.apache.org/proper/commons-exec/tutorial.html]

I found wrong code example in "Unblock Your Execution paragraph".

 

The "cmdLine" variable later in code changes its name to  "commandLine".

At the end, this code line -> int exitValue = resultHandler.waitFor();  is wrong because
the waitFor() method is void and doesn't return any value.

 

In the examples above may also have mistakes but I haven't checked.

 

  was:
I want to apologize if this issue is not correctly formatted, but I am new into the issue
reporting.

On this page on the bottom - [http://commons.apache.org/proper/commons-exec/tutorial.html]

I found wrong code example in Unblock Your Execution paragraph.

 

The "cmdLine" variable later in code changes its name to  "commandLine".

At the end, this code line -> int exitValue = resultHandler.waitFor();  is wrong because
the waitFor() method is void and doesn't return any value.

 

In the examples above may also have mistakes but I haven't checked.

 


> Small mistakes in the documentation for Apache Commons Exec 1.3
> ---------------------------------------------------------------
>
>                 Key: EXEC-105
>                 URL: https://issues.apache.org/jira/browse/EXEC-105
>             Project: Commons Exec
>          Issue Type: Wish
>    Affects Versions: 1.3
>            Reporter: Ivan Puntev
>            Priority: Trivial
>
> I want to apologize if this issue is not correctly formatted, but I am new into the issue
reporting.
> On this page on the bottom - [http://commons.apache.org/proper/commons-exec/tutorial.html]
> I found wrong code example in "Unblock Your Execution paragraph".
>  
> The "cmdLine" variable later in code changes its name to  "commandLine".
> At the end, this code line -> int exitValue = resultHandler.waitFor();  is wrong
because the waitFor() method is void and doesn't return any value.
>  
> In the examples above may also have mistakes but I haven't checked.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message