Class PluginBase
java.lang.Object
org.apache.maven.plugin.AbstractMojo
uk.co.terminological.rjava.plugin.PluginBase
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
R6CleanPlugin,R6FlattenerPlugin,R6GeneratorPlugin
public abstract class PluginBase
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Pathprotected Pathprotected Stringprotected Pathprotected org.apache.maven.project.MavenProjectprotected org.apache.maven.execution.MavenSessionprotected Fileprotected PackageDataprotected org.apache.maven.plugin.BuildPluginManagerprotected Pathprotected Pathprotected Pathprotected Stringprotected Stringprotected Stringprotected Pathprotected Stringprotected PathFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyCompliedJarToRPackage(String jarFile) protected voidprotected voiddeleteRPackageJar(String jarFile) protected static booleanisGenerated(File f) protected voidrmContents(Path dir) protected voidrmGenerated(Path dir) protected voidscanDirectoryForExports(Path rDir) protected voidMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
mavenProject
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject mavenProject -
mavenSession
@Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession mavenSession -
pluginManager
@Component protected org.apache.maven.plugin.BuildPluginManager pluginManager -
packageData
-
outputDirectory
-
rProjectDir
-
jarDir
-
rDir
-
manDir
-
docs
-
testDir
-
workflows
-
jarFile
-
pomDir
-
rToPomPath
-
sourcesFile
-
thinJarFile
-
shadedFile
-
-
Constructor Details
-
PluginBase
public PluginBase()
-
-
Method Details
-
rmContents
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
rmJar
protected void rmJar(Path dir, String artifactiId) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
isGenerated
-
rmGenerated
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setupPaths
protected void setupPaths() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
scanDirectoryForExports
protected List<String> scanDirectoryForExports(Path rDir) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
deleteRPackageInstalledJars
protected void deleteRPackageInstalledJars() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
deleteRPackageJar
-
copyCompliedJarToRPackage
protected void copyCompliedJarToRPackage(String jarFile) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-