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 Path
protected Path
protected String
protected Path
protected org.apache.maven.project.MavenProject
protected org.apache.maven.execution.MavenSession
protected File
protected PackageData
protected org.apache.maven.plugin.BuildPluginManager
protected Path
protected Path
protected Path
protected String
protected String
protected String
protected Path
protected String
protected Path
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
copyCompliedJarToRPackage
(String jarFile) protected void
protected void
deleteRPackageJar
(String jarFile) protected static boolean
isGenerated
(File f) protected void
rmContents
(Path dir) protected void
rmGenerated
(Path dir) protected void
scanDirectoryForExports
(Path rDir) protected void
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-