Class MavenTask
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.task.Task<MavenTask,MavenTaskProperties>
-
- com.atlassian.bamboo.specs.builders.task.MavenTask
-
public class MavenTask extends Task<MavenTask,MavenTaskProperties>
Maven 2/3 build task builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMavenTask.TestDirectoryOption
-
Field Summary
Fields Modifier and Type Field Description protected @Nullable StringenvironmentVariablesprotected @NotNull Stringgoalprotected booleanhasTestsprotected @Nullable Stringjdkprotected @Nullable Stringlabelstatic intMAVEN_V2static intMAVEN_V3protected @Nullable StringprojectFileprotected @Nullable MavenTask.TestDirectoryOptiontestDirectoryOptionprotected @Nullable StringtestResultsDirectoryprotected booleanuseMavenReturnCodeprotected intversionprotected @Nullable StringworkingSubdirectory-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
-
Constructor Summary
Constructors Constructor Description MavenTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull MavenTaskPropertiesbuild()MavenTaskenvironmentVariables(String environmentVariables)booleanequals(Object o)MavenTaskexecutableLabel(String label)MavenTaskgoal(@NotNull String goal)inthashCode()MavenTaskhasTests(boolean hasTests)MavenTaskjdk(String jdk)MavenTaskprojectFile(String projectFile)MavenTaskstandardResultsPath()MavenTasktestResultsPath(String testResultsDirectory)MavenTaskuseMavenReturnCode(boolean useMavenReturnCode)MavenTaskversion2()MavenTaskversion3()MavenTaskworkingSubdirectory(String workingSubdirectory)-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
-
-
-
Field Detail
-
MAVEN_V2
public static final int MAVEN_V2
- See Also:
- Constant Field Values
-
MAVEN_V3
public static final int MAVEN_V3
- See Also:
- Constant Field Values
-
goal
@NotNull protected @NotNull String goal
-
projectFile
@Nullable protected @Nullable String projectFile
-
environmentVariables
@Nullable protected @Nullable String environmentVariables
-
jdk
@Nullable protected @Nullable String jdk
-
label
@Nullable protected @Nullable String label
-
hasTests
protected boolean hasTests
-
testDirectoryOption
@Nullable protected @Nullable MavenTask.TestDirectoryOption testDirectoryOption
-
testResultsDirectory
@Nullable protected @Nullable String testResultsDirectory
-
workingSubdirectory
@Nullable protected @Nullable String workingSubdirectory
-
useMavenReturnCode
protected boolean useMavenReturnCode
-
version
protected int version
-
-
Method Detail
-
hasTests
public MavenTask hasTests(boolean hasTests)
-
standardResultsPath
public MavenTask standardResultsPath()
-
useMavenReturnCode
public MavenTask useMavenReturnCode(boolean useMavenReturnCode)
-
version2
public MavenTask version2()
-
version3
public MavenTask version3()
-
build
@NotNull protected @NotNull MavenTaskProperties build()
- Specified by:
buildin classTask<MavenTask,MavenTaskProperties>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTask<MavenTask,MavenTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<MavenTask,MavenTaskProperties>
-
-