/** * 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(); }
@Override public void run() { run(new RunnerImpl()); getProject().updateTransientActions(); MavenModuleSetBuild parentBuild = getModuleSetBuild(); if(parentBuild!=null) parentBuild.notifyModuleBuild(this); }
@Override public boolean isBuildable() { // not buildable if the parent project is disabled return super.isBuildable() && getParent().isBuildable(); }
@Override public void run() { execute(new MavenBuildExecution()); getProject().updateTransientActions(); MavenModuleSetBuild parentBuild = getModuleSetBuild(); if(parentBuild!=null) parentBuild.notifyModuleBuild(this); }
/** * Gets the "governing" {@link MavenModuleSet} that has set * the workspace for this build. * * @return * null if no such build exists, which happens if the build * is manually removed. * @see #getParentBuild() */ public MavenModuleSetBuild getModuleSetBuild() { return getParent().getParent().getNearestOldBuild(getNumber()); }
/** * Gets the {@link MavenModuleSetBuild} that has the same build number. * * @return * null if no such build exists, which happens when the module build * is manually triggered. * @see #getModuleSetBuild() */ public MavenModuleSetBuild getParentBuild() { return getParent().getParent().getBuildByNumber(getNumber()); }
@Override protected void performDelete() throws IOException, InterruptedException { super.performDelete(); getParent().onModuleDeleted(this); }
@SuppressWarnings("unchecked") public void run() { execute(new MavenModuleSetBuildExecution()); getProject().updateTransientActions(); }
public void run() { run(new RunnerImpl()); getProject().updateTransientActions(); }
/*package*/ MavenModule(MavenModuleSet parent, PomInfo pom, int firstBuildNumber) throws IOException { super(parent, pom.name.toFileSystemName()); reconfigure(pom); updateNextBuildNumber(firstBuildNumber); }
@Override protected void doSetName(String name) { moduleName = ModuleName.fromFileSystemName(name); super.doSetName(moduleName.toString()); }
public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { if(ModuleName.isValid(token)) return getModule(token); return super.getDynamic(token,req,rsp); }
/** * {@link MavenModule} follows the same log rotation schedule as its parent. */ @Override public LogRotator getLogRotator() { return getParent().getLogRotator(); }
public static MavenEmbedder createEmbedder( TaskListener listener, File mavenHome, String profiles, Properties systemProperties, String privateRepository ) throws MavenEmbedderException, IOException { return createEmbedder( new MavenEmbedderRequest( listener, mavenHome, profiles, systemProperties, privateRepository, null ) ); }
/** * 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(); }
@Override public boolean isBuildable() { // not buildable if the parent project is disabled return super.isBuildable() && getParent().isBuildable(); }
@Override protected void performDelete() throws IOException, InterruptedException { super.performDelete(); getParent().onModuleDeleted( this ); }
public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { if(ModuleName.isValid(token)) return getModule(token); return super.getDynamic(token,req,rsp); }