@Experimental @Generated @ThreadSafe @Immutable public class BuildBase extends PluginConfiguration implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
BuildBase.Builder
Builder class used to create BuildBase instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultGoal()
The default goal (or phase in Maven 2) to execute when none is specified for
the project.
|
String |
getDirectory()
The directory where all files generated by the build are placed.
|
List<String> |
getFilters()
The list of filter properties files that are used when filtering is enabled.
|
String |
getFinalName()
The filename (excluding the extension, and with no path information) that
the produced artifact will be called.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
List<Resource> |
getResources()
This element describes all of the classpath resources such as properties
files associated with a project.
|
List<Resource> |
getTestResources()
This element describes all of the classpath resources such as properties
files associated with a project's unit tests.
|
static BuildBase.Builder |
newBuilder()
Creates a new
BuildBase builder instance. |
static BuildBase.Builder |
newBuilder(boolean withDefaults)
Creates a new
BuildBase builder instance using default values or not. |
static BuildBase.Builder |
newBuilder(BuildBase from)
Creates a new
BuildBase builder instance using the specified object as a basis. |
static BuildBase.Builder |
newBuilder(BuildBase from,
boolean forceCopy)
Creates a new
BuildBase builder instance using the specified object as a basis. |
static BuildBase |
newInstance()
Creates a new
BuildBase instance. |
static BuildBase |
newInstance(boolean withDefaults)
Creates a new
BuildBase instance using default values or not. |
BuildBase.Builder |
with()
Creates a new builder with this object as the basis.
|
BuildBase |
withDefaultGoal(String defaultGoal)
Creates a new
BuildBase instance using the specified defaultGoal. |
BuildBase |
withDirectory(String directory)
Creates a new
BuildBase instance using the specified directory. |
BuildBase |
withFilters(Collection<String> filters)
Creates a new
BuildBase instance using the specified filters. |
BuildBase |
withFinalName(String finalName)
Creates a new
BuildBase instance using the specified finalName. |
BuildBase |
withPluginManagement(PluginManagement pluginManagement)
Creates a new
BuildBase instance using the specified pluginManagement. |
BuildBase |
withPlugins(Collection<Plugin> plugins)
Creates a new
BuildBase instance using the specified plugins. |
BuildBase |
withResources(Collection<Resource> resources)
Creates a new
BuildBase instance using the specified resources. |
BuildBase |
withTestResources(Collection<Resource> testResources)
Creates a new
BuildBase instance using the specified testResources. |
getPluginManagement, newBuilder, newBuilder
flushPluginMap, getPlugins, getPluginsAsMap, newBuilder, newBuilder
public String getDefaultGoal()
String
@Nonnull public List<Resource> getResources()
src/main/resources
.List<Resource>
@Nonnull public List<Resource> getTestResources()
src/test/resources
.List<Resource>
public String getDirectory()
target
.String
public String getFinalName()
${artifactId}-${version}
.String
@Nonnull public List<String> getFilters()
List<String>
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class PluginConfiguration
@Nonnull public BuildBase.Builder with()
with
in class PluginConfiguration
Builder
@Nonnull public BuildBase withPlugins(Collection<Plugin> plugins)
BuildBase
instance using the specified plugins.withPlugins
in class PluginConfiguration
plugins
- the new Collection<Plugin>
to useBuildBase
with the specified plugins@Nonnull public BuildBase withPluginManagement(PluginManagement pluginManagement)
BuildBase
instance using the specified pluginManagement.withPluginManagement
in class PluginConfiguration
pluginManagement
- the new PluginManagement
to useBuildBase
with the specified pluginManagement@Nonnull public BuildBase withDefaultGoal(String defaultGoal)
BuildBase
instance using the specified defaultGoal.defaultGoal
- the new String
to useBuildBase
with the specified defaultGoal@Nonnull public BuildBase withResources(Collection<Resource> resources)
BuildBase
instance using the specified resources.resources
- the new Collection<Resource>
to useBuildBase
with the specified resources@Nonnull public BuildBase withTestResources(Collection<Resource> testResources)
BuildBase
instance using the specified testResources.testResources
- the new Collection<Resource>
to useBuildBase
with the specified testResources@Nonnull public BuildBase withDirectory(String directory)
BuildBase
instance using the specified directory.directory
- the new String
to useBuildBase
with the specified directory@Nonnull public BuildBase withFinalName(String finalName)
BuildBase
instance using the specified finalName.finalName
- the new String
to useBuildBase
with the specified finalName@Nonnull public BuildBase withFilters(Collection<String> filters)
BuildBase
instance using the specified filters.filters
- the new Collection<String>
to useBuildBase
with the specified filters@Nonnull public static BuildBase newInstance()
BuildBase
instance.
Equivalent to newInstance( true )
.BuildBase
newInstance(boolean)
@Nonnull public static BuildBase newInstance(boolean withDefaults)
BuildBase
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedBuildBase
@Nonnull public static BuildBase.Builder newBuilder()
BuildBase
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static BuildBase.Builder newBuilder(boolean withDefaults)
BuildBase
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static BuildBase.Builder newBuilder(BuildBase from)
BuildBase
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the BuildBase
instance to use as a basisBuilder
@Nonnull public static BuildBase.Builder newBuilder(BuildBase from, boolean forceCopy)
BuildBase
builder instance using the specified object as a basis.from
- the BuildBase
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.