[arquillian-issues] [JBoss JIRA] (ARQ-1720) Command's toString() method does not take whitespaces into account
Stefan Miklosovic (JIRA)
issues at jboss.org
Fri Mar 21 11:44:10 EDT 2014
Stefan Miklosovic created ARQ-1720:
--------------------------------------
Summary: 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
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