Class BuildJob
- java.lang.Object
-
- org.apache.maven.plugins.invoker.model.BuildJob
-
- All Implemented Interfaces:
java.io.Serializable
public class BuildJob extends java.lang.Object implements java.io.SerializableDescribes a build job processed by the Maven Invoker Plugin. A build job can consist of a pre-build hook script, one ore more invocations of Maven and a post-build hook script.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuildJob.ResultThe various results with which a build job can complete.static classBuildJob.TypeThe various types of a build job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBuildlog()Get the build log filename.java.lang.StringgetDescription()Get the description of this build job.java.lang.StringgetFailureMessage()Get any failure message(s) in case this build job failed.java.lang.StringgetModelEncoding()Get the modelEncoding field.java.lang.StringgetName()Get the name of this build job.intgetOrdinal()Get buildJobs will be sorted in the descending order of the ordinal.java.lang.StringgetProject()Get the path to the project to build.java.lang.StringgetResult()Get the result of this build job.doublegetTime()Get the number of seconds that this build job took to complete.java.lang.StringgetType()Get the type of the build job.voidsetBuildlog(java.lang.String buildlog)Set the build log filename.voidsetDescription(java.lang.String description)Set the description of this build job.voidsetFailureMessage(java.lang.String failureMessage)Set any failure message(s) in case this build job failed.voidsetModelEncoding(java.lang.String modelEncoding)Set the modelEncoding field.voidsetName(java.lang.String name)Set the name of this build job.voidsetOrdinal(int ordinal)Set buildJobs will be sorted in the descending order of the ordinal.voidsetProject(java.lang.String project)Set the path to the project to build.voidsetResult(java.lang.String result)Set the result of this build job.voidsetTime(double time)Set the number of seconds that this build job took to complete.voidsetType(java.lang.String type)Set the type of the build job.java.lang.StringtoString()
-
-
-
Method Detail
-
getBuildlog
public java.lang.String getBuildlog()
Get the build log filename.- Returns:
- String
-
getDescription
public java.lang.String getDescription()
Get the description of this build job.- Returns:
- String
-
getFailureMessage
public java.lang.String getFailureMessage()
Get any failure message(s) in case this build job failed.- Returns:
- String
-
getModelEncoding
public java.lang.String getModelEncoding()
Get the modelEncoding field.- Returns:
- String
-
getName
public java.lang.String getName()
Get the name of this build job.- Returns:
- String
-
getOrdinal
public int getOrdinal()
Get buildJobs will be sorted in the descending order of the ordinal. In other words, the BuildJobs with the highest numbers will be executed first.- Returns:
- int
-
getProject
public java.lang.String getProject()
Get the path to the project to build. This path is usually relative and can denote both a POM file or a project directory.- Returns:
- String
-
getResult
public java.lang.String getResult()
Get the result of this build job.- Returns:
- String
-
getTime
public double getTime()
Get the number of seconds that this build job took to complete.- Returns:
- double
-
getType
public java.lang.String getType()
Get the type of the build job.- Returns:
- String
-
setBuildlog
public void setBuildlog(java.lang.String buildlog)
Set the build log filename.- Parameters:
buildlog-
-
setDescription
public void setDescription(java.lang.String description)
Set the description of this build job.- Parameters:
description-
-
setFailureMessage
public void setFailureMessage(java.lang.String failureMessage)
Set any failure message(s) in case this build job failed.- Parameters:
failureMessage-
-
setModelEncoding
public void setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.- Parameters:
modelEncoding-
-
setName
public void setName(java.lang.String name)
Set the name of this build job.- Parameters:
name-
-
setOrdinal
public void setOrdinal(int ordinal)
Set buildJobs will be sorted in the descending order of the ordinal. In other words, the BuildJobs with the highest numbers will be executed first.- Parameters:
ordinal-
-
setProject
public void setProject(java.lang.String project)
Set the path to the project to build. This path is usually relative and can denote both a POM file or a project directory.- Parameters:
project-
-
setResult
public void setResult(java.lang.String result)
Set the result of this build job.- Parameters:
result-
-
setTime
public void setTime(double time)
Set the number of seconds that this build job took to complete.- Parameters:
time-
-
setType
public void setType(java.lang.String type)
Set the type of the build job.- Parameters:
type-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-