Class JoinPathsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.github.robtimus.maven.plugins.buildhelper.JoinPathsMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="join-paths", defaultPhase=INITIALIZE, requiresProject=true, threadSafe=true) public class JoinPathsMojo extends org.apache.maven.plugin.AbstractMojoJoin paths using the platform-specific path separator and provide the result as a Maven property.While paths for most of the standard Maven plugins can be defined in a way that is platform agnostic, sometimes it's necessary to add flags directly. For instance, when configuring Javadoc's
--snippet-pathflag, the value should use the platform-specific path separator.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String[]pathsThe paths to join.(package private) org.apache.maven.project.MavenProjectproject(package private) java.lang.StringpropertyNameThe name of the resulting Maven property name.
-
Constructor Summary
Constructors Constructor Description JoinPathsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}", readonly=true) org.apache.maven.project.MavenProject project
-
paths
@Parameter java.lang.String[] paths
The paths to join.- Since:
- 1.0
-
propertyName
@Parameter java.lang.String propertyName
The name of the resulting Maven property name. This property should not have been set before.- Since:
- 1.0
-
-