[arquillian-issues] [JBoss JIRA] (ARQ-1720) Command's toString() method does not take whitespaces into account

Karel Piwko (JIRA) issues at jboss.org
Mon Mar 24 05:53:13 EDT 2014


     [ https://issues.jboss.org/browse/ARQ-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karel Piwko resolved ARQ-1720.
------------------------------

    Resolution: Done


Pushed upstream in https://github.com/arquillian/arquillian-spacelift/commit/2dad9b24d552d671c9fa1a6cfce145db483c0ca1
                
> Command's toString() method does not take whitespaces into account
> ------------------------------------------------------------------
>
>                 Key: ARQ-1720
>                 URL: https://issues.jboss.org/browse/ARQ-1720
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Spacelift
>    Affects Versions: spacelift_1.0.0.Alpha1
>            Reporter: Stefan Miklosovic
>            Assignee: Karel Piwko
>             Fix For: spacelift_1.0.0.Alpha2
>
>
> In case of invocation of command like this from shell
> {code}
> android create avd -n fd930b32-69bc-4d52-8313-2c9c27bb4511 -t "Google Inc.:Google APIs:17"
> {code}
> In order to build that command in Spacelift, having
> {code}
> String target = "Google Inc.:Google APIs:17";
> {code}
> this is necessary to do in order to have the same command in Spacelift
> {code}
> Command command = new CommandBuilder().add(sdk.getAndroidPath())
>     .add("create")
>     .add("avd")
>     .add("-n")
>     .add(configuration.getAvdName())
>     .add("-t")
>     .add(target).build();
> {code}
> However, command.toString() says that Spacelift invoked this
> {code}
> android create avd -n fd930b32-69bc-4d52-8313-2c9c27bb4511 -t Google Inc.:Google APIs:17
> {code}
> But it is not true, in fact, it was executed with enclosing quotes because of present spaces in target string which command.toString() has not taken into account.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list