private List<String> profiles;
private Map<String, String> properties;
+ private Boolean success = null;
+
public void run() {
Thread.currentThread().setContextClassLoader(
getClass().getClassLoader());
List<String> args = new ArrayList<String>();
args.add("-e");
- if (settings != null) {
+ if (settings != null && !settings.trim().equals("")) {
args.add("--settings");
args.add(settings);
}
getBasedirFile().getPath(), System.out, System.err);
if (log.isDebugEnabled())
log.debug("Maven exit code: " + exitCode);
+ if (exitCode == 0)
+ success = true;
+ else
+ success = false;
PlexusContainer plexusContainer = mavenCli.getContainer();
if (log.isDebugEnabled())
this.cl = cl;
}
+ public Boolean getSuccess() {
+ return success == null ? false : success;
+ }
+
}