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
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.