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 Classes Modifier and Type Class Description private static interfaceClojureCompilerMojo.IFileProcessor-
Nested classes/interfaces inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.BooleancleanAOTNamespacesShould the compile phase clean unwanted aot classes?static java.util.Map<java.lang.String,java.lang.Character>DEMUNGE_MAPstatic java.util.regex.PatternDEMUNGE_PATTERNprotected java.lang.BooleantemporaryOutputDirectoryShould 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, workingDirectory
-
-
Constructor Summary
Constructors Constructor Description ClojureCompilerMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcleanAOTNamespaces(java.io.File outputDirectory, java.lang.String[] namespaces)java.lang.Stringdemunge(java.lang.String mungedName)voidexecute()private longrecurseDirectoryFiles(java.io.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, isExistingTestScriptFile
-
-
-
-
Field Detail
-
temporaryOutputDirectory
@Parameter(required=true, defaultValue="false") protected java.lang.Boolean temporaryOutputDirectoryShould the compile phase create a temporary output directory for .class files?
-
cleanAOTNamespaces
@Parameter(required=false, defaultValue="false") protected java.lang.Boolean cleanAOTNamespacesShould the compile phase clean unwanted aot classes?
-
DEMUNGE_MAP
public static final java.util.Map<java.lang.String,java.lang.Character> DEMUNGE_MAP
-
DEMUNGE_PATTERN
public static final java.util.regex.Pattern DEMUNGE_PATTERN
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
cleanAOTNamespaces
private void cleanAOTNamespaces(java.io.File outputDirectory, java.lang.String[] namespaces)
-
recurseDirectoryFiles
private long recurseDirectoryFiles(java.io.File d, ClojureCompilerMojo.IFileProcessor fp, boolean deleteEmptyDirs)
-
demunge
public java.lang.String demunge(java.lang.String mungedName)
-
-