Class ToolchainModel
- All Implemented Interfaces:
Serializable
,Cloneable
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
Fields inherited from class org.apache.maven.toolchain.model.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProvide
(String key, String value) Method addProvide.clone()
Method clone.boolean
Method equals.GetMethod getProvides.getType()
int
hashCode()
Method hashCode.void
setConfiguration
(Object configuration) Setvoid
setProvides
(Properties provides) Setvoid
Methods inherited from class org.apache.maven.toolchain.model.TrackableBase
getSourceLevel, setSourceLevel
-
Constructor Details
-
ToolchainModel
public ToolchainModel()
-
-
Method Details
-
addProvide
Method addProvide.- Parameters:
key
- a key object.value
- a value object.
-
clone
Method clone.- Overrides:
clone
in classTrackableBase
- Returns:
- ToolchainModel
-
getConfiguration
GetToolchain configuration information, like location or any information that is to be retrieved.
Actual content structure is completely open: each toolchain type will define its own format and semantics.
In general, this is a properties format:
<name>value</name>
with per-toolchain defined properties names.- Returns:
- Object
-
getProvides
Method getProvides.- Returns:
- Properties
-
getType
Get type of toolchain:jdk
for JDK Standard Toolchain,- other value for Custom Toolchain
- Returns:
- String
-
setConfiguration
SetToolchain configuration information, like location or any information that is to be retrieved.
Actual content structure is completely open: each toolchain type will define its own format and semantics.
In general, this is a properties format:
<name>value</name>
with per-toolchain defined properties names.- Parameters:
configuration
- a configuration object.
-
setProvides
SetToolchain identification information, which will be matched against project requirements.
For Maven 2.0.9 to 3.2.3, the actual content structure was completely open: each toolchain type would define its own format and semantics. In general, this was a properties format.
Since Maven 3.2.4, the type for this field has been changed to Properties to match the de-facto format.
Each toolchain defines its own properties names and semantics.
- Parameters:
provides
- a provides object.
-
setType
Set type of toolchain:jdk
for JDK Standard Toolchain,- other value for Custom Toolchain
- Parameters:
type
- a type object.
-
hashCode
public int hashCode()Method hashCode. -
equals
Method equals.
-