Package com.theoryinpractise.clojure
Class ClojureReplMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.theoryinpractise.clojure.AbstractClojureCompilerMojo
-
- com.theoryinpractise.clojure.ClojureReplMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="repl", defaultPhase=TEST_COMPILE, requiresDependencyResolution=TEST) public class ClojureReplMojo extends AbstractClojureCompilerMojoMojo to start a clojure repl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.PatternICLOJUREprivate static java.util.regex.PatternJLINEprivate java.lang.StringreplScriptThe clojure script to preceding the switch to the replprivate static java.util.regex.PatternREPLYprivate static java.lang.StringREPLY_REPLY_MAIN-
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 ClojureReplMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()(package private) booleanisIClojureAvailable(java.util.List<java.lang.String> elements)(package private) booleanisJLineAvailable(java.util.List<java.lang.String> elements)private booleanisPatternFoundInClasspath(java.util.List<java.lang.String> elements, java.util.regex.Pattern pattern)(package private) booleanisReplyAvailable(java.util.List<java.lang.String> elements)-
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
-
REPLY_REPLY_MAIN
private static final java.lang.String REPLY_REPLY_MAIN
- See Also:
- Constant Field Values
-
replScript
@Parameter private java.lang.String replScript
The clojure script to preceding the switch to the repl
-
JLINE
private static final java.util.regex.Pattern JLINE
-
ICLOJURE
private static final java.util.regex.Pattern ICLOJURE
-
REPLY
private static final java.util.regex.Pattern REPLY
-
-
Method Detail
-
isJLineAvailable
boolean isJLineAvailable(java.util.List<java.lang.String> elements)
-
isIClojureAvailable
boolean isIClojureAvailable(java.util.List<java.lang.String> elements)
-
isReplyAvailable
boolean isReplyAvailable(java.util.List<java.lang.String> elements)
-
isPatternFoundInClasspath
private boolean isPatternFoundInClasspath(java.util.List<java.lang.String> elements, java.util.regex.Pattern pattern)
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-