Package com.theoryinpractise.clojure
Class ClojureMarginaliaMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.theoryinpractise.clojure.AbstractClojureCompilerMojo
com.theoryinpractise.clojure.ClojureMarginaliaMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="marginalia",
defaultPhase=PACKAGE,
requiresDependencyResolution=TEST)
public class ClojureMarginaliaMojo
extends AbstractClojureCompilerMojo
Mojo for running Marginalia. Allows configuration of the source list
and target directory.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String[]Location of the source files.private StringLocation of the output files.private org.apache.maven.project.MavenProjectThe Maven Project.private Stringprivate Stringprivate Stringprivate StringFields inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
baseDirectory, baseTestSourceDirectory, charset, classpathElements, compileDeclaredNamespaceOnly, copiedNamespaces, copyDeclaredNamespaceOnly, directLinking, generatedSourceDirectory, namespaces, outputDirectory, sourceDirectories, testClasspathElements, testDeclaredNamespaceOnly, testNamespaces, testOutputDirectory, testSourceDirectories, workingDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()private Set<org.apache.maven.artifact.Artifact>filterScope(Set<org.apache.maven.artifact.Artifact> artifacts, String scope) private StringformatDependencies(Set<org.apache.maven.artifact.Artifact> artifacts) private Stringprivate StringMethods inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
callClojureWith, callClojureWith, callClojureWith, callClojureWith, copyNamespaceSourceFilesToOutput, createTemporaryDirectory, discoverNamespaces, discoverNamespacesToCopy, escapeFilePath, escapeFilePath, getDefaultJavaHomeExecutable, getRunWithClasspathElements, getSourceDirectories, getWorkingDirectory, isClasspathResource, isExistingTestScriptFileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(readonly=true, required=true, property="project") private org.apache.maven.project.MavenProject projectThe Maven Project. -
projectName
-
projectVersion
-
projectDescription
-
projectBuildDir
-
marginaliaSourceDirectories
Location of the source files. -
marginaliaTargetDirectory
@Parameter(defaultValue="${project.build.directory}/marginalia") private String marginaliaTargetDirectoryLocation of the output files. -
marginalia
-
-
Constructor Details
-
ClojureMarginaliaMojo
public ClojureMarginaliaMojo()
-
-
Method Details
-
filterScope
-
quote
-
formatDependencies
-
formatMap
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-