Package com.theoryinpractise.clojure
Class ClojureCompilerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.theoryinpractise.clojure.AbstractClojureCompilerMojo
com.theoryinpractise.clojure.ClojureCompilerMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="compile",
defaultPhase=COMPILE,
requiresDependencyResolution=COMPILE)
public class ClojureCompilerMojo
extends AbstractClojureCompilerMojo
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BooleanShould the compile phase clean unwanted aot classes?static final Patternprotected BooleanShould the compile phase create a temporary output directory for .class files?Fields inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
baseDirectory, baseTestSourceDirectory, charset, classpathElements, compileDeclaredNamespaceOnly, copiedNamespaces, copyDeclaredNamespaceOnly, directLinking, generatedSourceDirectory, namespaces, outputDirectory, project, sourceDirectories, testClasspathElements, testDeclaredNamespaceOnly, testNamespaces, testOutputDirectory, testSourceDirectories, workingDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcleanAOTNamespaces(File outputDirectory, String[] namespaces) voidexecute()private longrecurseDirectoryFiles(File d, ClojureCompilerMojo.IFileProcessor fp, boolean deleteEmptyDirs) Methods 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
-
temporaryOutputDirectory
Should the compile phase create a temporary output directory for .class files? -
cleanAOTNamespaces
Should the compile phase clean unwanted aot classes? -
DEMUNGE_MAP
-
DEMUNGE_PATTERN
-
-
Constructor Details
-
ClojureCompilerMojo
public ClojureCompilerMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
cleanAOTNamespaces
-
recurseDirectoryFiles
private long recurseDirectoryFiles(File d, ClojureCompilerMojo.IFileProcessor fp, boolean deleteEmptyDirs) -
demunge
-