You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/04/26 17:05:30 UTC
[jira] Resolved: (EXEC-38) Tutorial example uses incorrect API
call.
[ https://issues.apache.org/jira/browse/EXEC-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved EXEC-38.
----------------------
Resolution: Fixed
> Tutorial example uses incorrect API call.
> -----------------------------------------
>
> Key: EXEC-38
> URL: https://issues.apache.org/jira/browse/EXEC-38
> Project: Commons Exec
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Peter Henderson
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> http://commons.apache.org/exec/tutorial.html
> The section "Build the Command Line Incrementally" uses
> commandLine.addArguments(file.getAbsolutePath());
> which will go horribly wrong if the path has spaces in it.
> It should be using
> commandLine.addArgument(file.getAbsolutePath());
> Note the singular addArgument
> The two preceding calls to addArgument could also benefit from being changed.
> Peter
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.