Class DefaultProtobufToolchainFactory
- java.lang.Object
-
- org.xolstice.maven.toolchain.protobuf.DefaultProtobufToolchainFactory
-
- All Implemented Interfaces:
org.apache.maven.toolchain.ToolchainFactory
@Component(role=org.apache.maven.toolchain.ToolchainFactory.class, hint="protobuf", description="A default factory for \'protobuf\' toolchains") public class DefaultProtobufToolchainFactory extends java.lang.Object implements org.apache.maven.toolchain.ToolchainFactoryBased onorg.apache.maven.toolchain.java.DefaultJavaToolchainFactory.- Since:
- 0.2.0
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.logging.Loggerlogger
-
Constructor Summary
Constructors Constructor Description DefaultProtobufToolchainFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.maven.toolchain.ToolchainPrivatecreateDefaultToolchain()org.apache.maven.toolchain.ToolchainPrivatecreateToolchain(org.apache.maven.toolchain.model.ToolchainModel model)protected static java.lang.ObjectgetBeanProperty(java.lang.Object obj, java.lang.String property)protected static java.util.PropertiesgetProvidesProperties(org.apache.maven.toolchain.model.ToolchainModel model)Getprovidesproperties in in a way compatible with toolchains descriptor version 1.0 (Maven 2.0.9 to 3.2.3, where it is represented as Object/DOM) and descriptor version 1.1 (Maven 3.2.4 and later, where it is represented as Properties).protected static java.util.PropertiestoProperties(org.codehaus.plexus.util.xml.Xpp3Dom dom)
-
-
-
Method Detail
-
createToolchain
public org.apache.maven.toolchain.ToolchainPrivate createToolchain(org.apache.maven.toolchain.model.ToolchainModel model) throws org.apache.maven.toolchain.MisconfiguredToolchainException- Specified by:
createToolchainin interfaceorg.apache.maven.toolchain.ToolchainFactory- Throws:
org.apache.maven.toolchain.MisconfiguredToolchainException
-
createDefaultToolchain
public org.apache.maven.toolchain.ToolchainPrivate createDefaultToolchain()
- Specified by:
createDefaultToolchainin interfaceorg.apache.maven.toolchain.ToolchainFactory
-
getProvidesProperties
protected static java.util.Properties getProvidesProperties(org.apache.maven.toolchain.model.ToolchainModel model)
Getprovidesproperties in in a way compatible with toolchains descriptor version 1.0 (Maven 2.0.9 to 3.2.3, where it is represented as Object/DOM) and descriptor version 1.1 (Maven 3.2.4 and later, where it is represented as Properties).- Parameters:
model- the toolchain model as read from XML- Returns:
- the properties defined in the
provideselement - See Also:
- MNG-5718
-
toProperties
protected static java.util.Properties toProperties(org.codehaus.plexus.util.xml.Xpp3Dom dom)
-
getBeanProperty
protected static java.lang.Object getBeanProperty(java.lang.Object obj, java.lang.String property)
-
-