Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tnaroska committed Jan 28, 2015
1 parent 48b3d9a commit 0c8cfac
Showing 1 changed file with 19 additions and 23 deletions.
Expand Up @@ -114,28 +114,24 @@ private int getFreePort() throws MojoExecutionException {
}
}

private String[] buildProperties()
{
ArrayList<String> options = new ArrayList<>();
options.add(String.format("-D%s=%s", BASEDIR, basedir.getAbsolutePath()));
if (propagatedProperties != null)
{
for (String name : propagatedProperties.split("\\s*,\\s*"))
{
String val = System.getProperty(name);
if (val == null)
{
getLog().warn("Property " + name + " should be propagated to pax exam config class, but is " +
"not available in maven project.");
}
else
{
options.add(String.format("-D%s=%s", name, val));

getLog().debug("Propagating property: " + name + "=" + val);
}
}
}
return options.toArray(new String[options.size()]);
private String[] buildProperties() {
ArrayList<String> options = new ArrayList<>();
options.add(String.format("-D%s=%s", BASEDIR, basedir.getAbsolutePath()));

if (propagatedProperties != null) {
for (String name : propagatedProperties.split("\\s*,\\s*")) {
String val = System.getProperty(name);
if (val == null) {
getLog().warn("Property " + name + " should be propagated to pax exam config class, but is " +
"not available in maven project.");
}
else {
options.add(String.format("-D%s=%s", name, val));

getLog().debug("Propagating property: " + name + "=" + val);
}
}
}
return options.toArray(new String[options.size()]);
}
}

0 comments on commit 0c8cfac

Please sign in to comment.