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
Fields Modifier and Type Field Description private java.lang.StringnreplHandlerprotected java.lang.StringnreplHostprotected java.lang.String[]nreplMiddlewaresprotected intportprivate java.lang.StringreplScriptThe clojure script to preceding the switch to the repl-
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 ClojureNReplMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidappendNreplHandler(java.lang.StringBuilder sb)voidexecute()private booleanmiddlewareConfigured()private booleannoNreplHandlerAvailable()private voidrequireNreplHandlerNs(java.util.List<java.lang.String> args)private java.lang.StringwindowsEscapeCommandLineArg(java.lang.String arg)-
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
-
replScript
@Parameter private java.lang.String replScript
The clojure script to preceding the switch to the repl
-
port
@Parameter(defaultValue="4005", property="clojure.nrepl.port") protected int port
-
nreplHost
@Parameter(defaultValue="localhost", property="clojure.nrepl.host") protected java.lang.String nreplHost
-
nreplHandler
@Parameter(property="clojure.nrepl.handler") private java.lang.String nreplHandler
-
nreplMiddlewares
@Parameter protected java.lang.String[] nreplMiddlewares
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
requireNreplHandlerNs
private void requireNreplHandlerNs(java.util.List<java.lang.String> args)
-
noNreplHandlerAvailable
private boolean noNreplHandlerAvailable()
-
appendNreplHandler
private void appendNreplHandler(java.lang.StringBuilder sb)
-
middlewareConfigured
private boolean middlewareConfigured()
-
windowsEscapeCommandLineArg
private java.lang.String windowsEscapeCommandLineArg(java.lang.String arg)
-
-