31 lines
878 B
Java
31 lines
878 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.program.module;
|
|
|
|
import com.tridium.program.module.BProgramModule;
|
|
import com.tridium.program.module.BuildException;
|
|
import com.tridium.program.module.IBuildListener;
|
|
|
|
public abstract class BuildStep {
|
|
protected BProgramModule module;
|
|
protected IBuildListener interest;
|
|
|
|
public final void runStep(BProgramModule bProgramModule, IBuildListener iBuildListener) throws BuildException {
|
|
this.module = bProgramModule;
|
|
this.interest = iBuildListener;
|
|
try {
|
|
this.doStep();
|
|
}
|
|
catch (BuildException buildException) {
|
|
throw buildException;
|
|
}
|
|
catch (Exception exception) {
|
|
throw new BuildException("Build failed. " + exception.getMessage(), exception);
|
|
}
|
|
}
|
|
|
|
protected abstract void doStep() throws Exception;
|
|
}
|
|
|