Rename to wlp.user.dir
@@ -80,6 +80,7 @@ public class DevMojo extends StartDebugMojoSupport {
private static final String LIBERTY_MAVEN_PLUGIN_ARTIFACT_ID = "liberty-maven-plugin";
private static final String TEST_RUN_ID_PROPERTY_NAME = "liberty.dev.test.run.id";
+ private static final String WLP_USER_DIR_PROPERTY_NAME = "wlp.user.dir";
@Parameter(property = "hotTests", defaultValue = "false")
private boolean hotTests;
@@ -657,10 +658,10 @@ public class DevMojo extends StartDebugMojoSupport {
config.addChild(sysProps);
}
// don't overwrite existing properties if they are already defined
- if (sysProps.getChild("liberty.user.dir") == null) {
+ if (sysProps.getChild(WLP_USER_DIR_PROPERTY_NAME) == null) {
// pass in userDirectory parameter
try {
- sysProps.addChild(element(name("liberty.user.dir"), userDirectory.getCanonicalPath()).toDom());
+ sysProps.addChild(element(name(WLP_USER_DIR_PROPERTY_NAME), userDirectory.getCanonicalPath()).toDom());
} catch (IOException e) {
throw new MojoExecutionException("Could not resolve canonical path of userDirectory parameter: " + userDirectory.getAbsolutePath(), e);
}
