Package com.theoryinpractise.clojure
Class ClojureNReplMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.theoryinpractise.clojure.AbstractClojureCompilerMojo
com.theoryinpractise.clojure.ClojureNReplMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="nrepl",
requiresDependencyResolution=TEST)
public class ClojureNReplMojo
extends AbstractClojureCompilerMojo
-
Nested Class Summary
Nested classes/interfaces inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprotected Stringprotected String[]protected intprivate StringThe clojure script to preceding the switch to the replFields 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 voidvoidexecute()private booleanprivate booleanprivate voidrequireNreplHandlerNs(List<String> args) private 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
-
replScript
The clojure script to preceding the switch to the repl -
port
@Parameter(defaultValue="4005", property="clojure.nrepl.port") protected int port -
nreplHost
-
nreplHandler
-
nreplMiddlewares
-
-
Constructor Details
-
ClojureNReplMojo
public ClojureNReplMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
requireNreplHandlerNs
-
noNreplHandlerAvailable
private boolean noNreplHandlerAvailable() -
appendNreplHandler
-
middlewareConfigured
private boolean middlewareConfigured() -
windowsEscapeCommandLineArg
-