|
||||||||||
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 MavenBuildProxy2
public void end()
MavenBuildProxy2
end
in interface MavenBuildProxy2
public void appendLastLog()
SplittableBuildListener
to the log of this build.
appendLastLog
in interface MavenBuildProxy2
protected void close()
public MavenBuild owner()
public <V,T extends Throwable> V execute(MavenBuildProxy.BuildCallable<V,T> program) throws T extends Throwable, IOException, InterruptedException
MavenBuildProxy
MavenBuildProxy.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 MavenBuildProxy
MavenBuildProxy.BuildCallable
returned.
T
- if MavenBuildProxy.BuildCallable
throws this exception.
IOException
- if the remoting failed.
InterruptedException
- if the remote execution is aborted.
T extends Throwable
MavenBuildProxy.executeAsync(BuildCallable)
public final void executeAsync(MavenBuildProxy.BuildCallable<?,?> program) throws IOException
executeAsync
in interface MavenBuildProxy
IOException
public FilePath getRootDir()
MavenBuildProxy
getRootDir
in interface MavenBuildProxy
Run.getRootDir()
public FilePath getProjectRootDir()
MavenBuildProxy
getProjectRootDir
in interface MavenBuildProxy
public FilePath getModuleSetRootDir()
MavenBuildProxy
MavenModuleSet
getModuleSetRootDir
in interface MavenBuildProxy
public FilePath getArtifactsDir()
getArtifactsDir
in interface MavenBuildProxy
Run.getArtifactsDir()
public void setResult(Result result)
setResult
in interface MavenBuildProxy
Run.setResult(Result)
public Calendar getTimestamp()
getTimestamp
in interface MavenBuildProxy
Run.getTimestamp()
public long getMilliSecsSinceBuildStart()
MavenBuildProxy
MavenBuildProxy.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 MavenBuildProxy
public boolean isArchivingDisabled()
MavenBuildProxy
MavenModuleSet.isArchivingDisabled()
.
isArchivingDisabled
in interface MavenBuildProxy
public void registerAsProjectAction(MavenReporter reporter)
MavenBuildProxy
MavenReporter.getProjectActions(MavenModule)
.
The specified MavenReporter
object will be transfered to the master
and will become a persisted part of the MavenBuild
.
registerAsProjectAction
in interface MavenBuildProxy
public void registerAsProjectAction(MavenProjectActionBuilder builder)
MavenBuildProxy
MavenReporter.getProjectActions(MavenModule)
.
The specified MavenReporter
object will be transferred to the master
and will become a persisted part of the MavenBuild
.
registerAsProjectAction
in interface MavenBuildProxy
public void registerAsAggregatedProjectAction(MavenReporter reporter)
MavenBuildProxy
MavenReporter.getAggregatedProjectAction(MavenModuleSet)
.
The specified MavenReporter
object will be transfered to the master
and will become a persisted part of the MavenModuleSetBuild
.
registerAsAggregatedProjectAction
in interface MavenBuildProxy
public void setExecutedMojos(List<ExecutedMojo> executedMojos)
MavenBuildProxy
setExecutedMojos
in interface MavenBuildProxy
public MavenBuildInformation getMavenBuildInformation()
getMavenBuildInformation
in interface MavenBuildProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |