/** * The same as {@link #getParentBuild()} except that returns itself when no parent. */ @Override public AbstractBuild<?, ?> getRootBuild() { AbstractBuild<?, ?> parent = getParentBuild(); return (parent != null) ? parent : this; }
public void registerAsAggregatedProjectAction(MavenReporter reporter) { MavenModuleSetBuild pb = getParentBuild(); if(pb!=null) pb.registerAsProjectAction(reporter); }
public void registerAsAggregatedProjectAction(MavenReporter reporter) { MavenModuleSetBuild pb = getParentBuild(); if(pb!=null) pb.registerAsProjectAction(reporter); }
public String call(MavenBuild mavenBuild) throws IOException, InterruptedException { return mavenBuild.getParentBuild().getModuleRoot().getRemote(); } });
/** * If the parent {@link MavenModuleSetBuild} is kept, keep this record, too. */ @Override public String getWhyKeepLog() { MavenModuleSetBuild pb = getParentBuild(); if(pb!=null && pb.getWhyKeepLog()!=null) return Messages.MavenBuild_KeptBecauseOfParent(pb); return super.getWhyKeepLog(); }
/*package*/ FilteredChangeLogSet(MavenBuild build) { super(build); MavenModuleSetBuild parentBuild = build.getParentBuild(); if(parentBuild==null) { core = ChangeLogSet.createEmpty(build); master = Collections.emptyList(); } else { core = parentBuild.getChangeSet(); master = parentBuild.getChangeSetFor(build.getParent()); } }
/** * If the parent {@link MavenModuleSetBuild} is kept, keep this record, too. */ @Override public String getWhyKeepLog() { MavenModuleSetBuild pb = getParentBuild(); if(pb!=null && pb.getWhyKeepLog()!=null) return Messages.MavenBuild_KeptBecauseOfParent(pb); return super.getWhyKeepLog(); }
/*package*/ FilteredChangeLogSet(MavenBuild build) { super(build); MavenModuleSetBuild parentBuild = build.getParentBuild(); if(parentBuild==null) { core = ChangeLogSet.createEmpty(build); master = Collections.emptyList(); } else { core = parentBuild.getChangeSet(); master = parentBuild.getChangeSetFor(build.getParent()); } }
/** * Since aggregation is done in background we still need to log all messages * of that step to the log. * * @param build * the finished maven module build * @param launcher * the launcher * @param listener * the lister that holds the log * @return <code>true</code> */ @Override public boolean end(final MavenBuild build, final Launcher launcher, final BuildListener listener) { MavenModuleSetBuild moduleSetBuild = build.getParentBuild(); if (moduleSetBuild != null) { MavenResultAction<T> action = moduleSetBuild.getAction(getResultActionClass()); if (action != null) { listener.getLogger().append(action.getLog()); } } return true; }
/** * Since aggregation is done in background we still need to log all messages * of that step to the log. * * @param build * the finished maven module build * @param launcher * the launcher * @param listener * the lister that holds the log * @return <code>true</code> */ @Override public boolean end(final MavenBuild build, final Launcher launcher, final BuildListener listener) { MavenModuleSetBuild moduleSetBuild = build.getParentBuild(); if (moduleSetBuild != null) { MavenResultAction<T> action = moduleSetBuild.getAction(getResultActionClass()); if (action != null) { listener.getLogger().append(action.getLog()); } } return true; }