Package cn.devit.maven.generator
Class PathMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- cn.devit.maven.generator.PathMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="path", defaultPhase=GENERATE_TEST_SOURCES, inheritByDefault=true) public class PathMojo extends org.apache.maven.plugin.AbstractMojoGoal which touches a timestamp file.- Author:
- Alex Lei
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.project.MavenProjectprojectThe current Maven project.
-
Constructor Summary
Constructors Constructor Description PathMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderbuild(Path root, Path start)voidexecute()StringfileNameToJava(String a)StringgetPackageDir()
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getPackageDir
public String getPackageDir()
-
build
public StringBuilder build(Path root, Path start)
-
-