|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.maven.MavenBuild.ProxyImpl2
public class MavenBuild.ProxyImpl2
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.maven.MavenBuildProxy2 |
|---|
MavenBuildProxy2.Filter<CORE extends MavenBuildProxy2> |
| Nested classes/interfaces inherited from interface hudson.maven.MavenBuildProxy |
|---|
MavenBuildProxy.BuildCallable<V,T extends Throwable> |
| Method Summary | ||
|---|---|---|
void |
appendLastLog()
Sends the accumulated log in SplittableBuildListener to the log of this build. |
|
protected void |
close()
Performs final clean up. |
|
void |
end()
Notifies that the build has left a module. |
|
|
execute(MavenBuildProxy.BuildCallable<V,T> program)
Executes the given MavenBuildProxy.BuildCallable on the master, where one
has access to MavenBuild and all the other Hudson objects. |
|
void |
executeAsync(MavenBuildProxy.BuildCallable<?,?> program)
Deprecated. This helps IDE find coding mistakes when someone tries to call this method. |
|
FilePath |
getArtifactsDir()
|
|
MavenBuildInformation |
getMavenBuildInformation()
|
|
long |
getMilliSecsSinceBuildStart()
# of milliseconds elapsed since MavenBuildProxy.getTimestamp(). |
|
FilePath |
getModuleSetRootDir()
Root directory of the owner MavenModuleSet |
|
FilePath |
getProjectRootDir()
Root directory of the parent of this build. |
|
FilePath |
getRootDir()
Root directory of the build. |
|
Calendar |
getTimestamp()
|
|
boolean |
isArchivingDisabled()
If true, artifacts will not actually be archived to master. |
|
MavenBuild |
owner()
Gets the build for which this proxy is created. |
|
void |
registerAsAggregatedProjectAction(MavenReporter reporter)
Nominates that the reporter will contribute a project action for this build by using MavenReporter.getAggregatedProjectAction(MavenModuleSet). |
|
void |
registerAsProjectAction(MavenProjectActionBuilder builder)
Nominates that the reporter will contribute a project action for this build by using MavenReporter.getProjectActions(MavenModule). |
|
void |
registerAsProjectAction(MavenReporter reporter)
Nominates that the reporter will contribute a project action for this build by using MavenReporter.getProjectActions(MavenModule). |
|
void |
setExecutedMojos(List<ExecutedMojo> executedMojos)
Called at the end of the build to record what mojos are executed. |
|
void |
setResult(Result result)
|
|
void |
start()
Notifies that the build has entered a module. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.maven.MavenBuildProxy |
|---|
execute, executeAsync, getArtifactsDir, getMavenBuildInformation, getMilliSecsSinceBuildStart, getModuleSetRootDir, getProjectRootDir, getRootDir, getTimestamp, isArchivingDisabled, registerAsAggregatedProjectAction, registerAsProjectAction, registerAsProjectAction, setExecutedMojos, setResult |
| Method Detail |
|---|
public void start()
MavenBuildProxy2
start in interface MavenBuildProxy2public void end()
MavenBuildProxy2
end in interface MavenBuildProxy2public void appendLastLog()
SplittableBuildListener to the log of this build.
appendLastLog in interface MavenBuildProxy2protected void close()
public MavenBuild owner()
public <V,T extends Throwable> V execute(MavenBuildProxy.BuildCallable<V,T> program)
throws T extends Throwable,
IOException,
InterruptedException
MavenBuildProxyMavenBuildProxy.BuildCallable on the master, where one
has access to MavenBuild and all the other Hudson objects.
The parameter, return value, and exception are all transfered by using Java serialization.
execute in interface MavenBuildProxyMavenBuildProxy.BuildCallable returned.
T - if MavenBuildProxy.BuildCallable throws this exception.
IOException - if the remoting failed.
InterruptedException - if the remote execution is aborted.
T extends ThrowableMavenBuildProxy.executeAsync(BuildCallable)
public final void executeAsync(MavenBuildProxy.BuildCallable<?,?> program)
throws IOException
executeAsync in interface MavenBuildProxyIOExceptionpublic FilePath getRootDir()
MavenBuildProxy
getRootDir in interface MavenBuildProxyRun.getRootDir()public FilePath getProjectRootDir()
MavenBuildProxy
getProjectRootDir in interface MavenBuildProxypublic FilePath getModuleSetRootDir()
MavenBuildProxyMavenModuleSet
getModuleSetRootDir in interface MavenBuildProxypublic FilePath getArtifactsDir()
getArtifactsDir in interface MavenBuildProxyRun.getArtifactsDir()public void setResult(Result result)
setResult in interface MavenBuildProxyRun.setResult(Result)public Calendar getTimestamp()
getTimestamp in interface MavenBuildProxyRun.getTimestamp()public long getMilliSecsSinceBuildStart()
MavenBuildProxyMavenBuildProxy.getTimestamp().
Where the clock skew is involved between the master and the Maven JVM, comparing
current time on Maven JVM with MavenBuildProxy.getTimestamp() could be problematic,
but this value is more robust.
getMilliSecsSinceBuildStart in interface MavenBuildProxypublic boolean isArchivingDisabled()
MavenBuildProxyMavenModuleSet.isArchivingDisabled().
isArchivingDisabled in interface MavenBuildProxypublic void registerAsProjectAction(MavenReporter reporter)
MavenBuildProxyMavenReporter.getProjectActions(MavenModule).
The specified MavenReporter object will be transfered to the master
and will become a persisted part of the MavenBuild.
registerAsProjectAction in interface MavenBuildProxypublic void registerAsProjectAction(MavenProjectActionBuilder builder)
MavenBuildProxyMavenReporter.getProjectActions(MavenModule).
The specified MavenReporter object will be transferred to the master
and will become a persisted part of the MavenBuild.
registerAsProjectAction in interface MavenBuildProxypublic void registerAsAggregatedProjectAction(MavenReporter reporter)
MavenBuildProxyMavenReporter.getAggregatedProjectAction(MavenModuleSet).
The specified MavenReporter object will be transfered to the master
and will become a persisted part of the MavenModuleSetBuild.
registerAsAggregatedProjectAction in interface MavenBuildProxypublic void setExecutedMojos(List<ExecutedMojo> executedMojos)
MavenBuildProxy
setExecutedMojos in interface MavenBuildProxypublic MavenBuildInformation getMavenBuildInformation()
getMavenBuildInformation in interface MavenBuildProxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||