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 AbstractClojureCompilerMojo
Mojo to start a clojure repl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate static final Patternprivate StringThe clojure script to preceding the switch to the replprivate static final Patternprivate static final StringFields 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 TypeMethodDescriptionvoidexecute()(package private) booleanisIClojureAvailable(List<String> elements) (package private) booleanisJLineAvailable(List<String> elements) private booleanisPatternFoundInClasspath(List<String> elements, Pattern pattern) (package private) booleanisReplyAvailable(List<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, isExistingTestScriptFileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
REPLY_REPLY_MAIN
- See Also:
-
replScript
The clojure script to preceding the switch to the repl -
JLINE
-
ICLOJURE
-
REPLY
-
-
Constructor Details
-
ClojureReplMojo
public ClojureReplMojo()
-
-
Method Details
-
isJLineAvailable
-
isIClojureAvailable
-
isReplyAvailable
-
isPatternFoundInClasspath
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-