Package org.sonatype.plugins.munge
Class MungeMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.sonatype.plugins.munge.MungeMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public class MungeMojo extends org.apache.maven.plugin.AbstractMojoMunges source files by keeping or removing sections of code according to what symbols are enabled.
-
-
Constructor Summary
Constructors Constructor Description MungeMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()static voidmunge(String from, String to, String includes, String excludes)Munges source files found infromand places them into, honoring any includes or excludes.
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
munge
public static void munge(String from, String to, String includes, String excludes) throws org.apache.maven.plugin.MojoExecutionException
Munges source files found infromand places them into, honoring any includes or excludes.- Parameters:
from- The original source directoryto- The munged source directoryincludes- Comma-separated list of files to includeexcludes- Comma-separated list of files to exclude- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-