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 AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Stringprotected Stringprotected String[]protected Stringprotected intprivate StringThe clojure script to preceding the switch to the replFields inherited from class 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 booleanprivate StringMethods inherited from class 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="0", property="clojure.nrepl.port") protected int port -
nreplHost
-
nreplUnixSocket
-
nreplHandler
-
keepRunning
@Parameter(property="clojure.nrepl.keepRunning") private boolean keepRunning -
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() -
unixSocketConfigured
private boolean unixSocketConfigured() -
windowsEscapeCommandLineArg
-