Package com.theoryinpractise.clojure
Class ClojureNailgunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.theoryinpractise.clojure.AbstractClojureCompilerMojo
com.theoryinpractise.clojure.ClojureNailgunMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="nailgun",
defaultPhase=TEST_COMPILE,
requiresDependencyResolution=TEST)
public class ClojureNailgunMojo
extends AbstractClojureCompilerMojo
Mojo to start a clojure REPL running vimclojure's nailgun.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.theoryinpractise.clojure.AbstractClojureCompilerMojo
AbstractClojureCompilerMojo.SourceDirectory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprivate StringThe clojure script to preceding the switch to the replprotected Stringpre vimclojure 2.2.0: com.martiansoftware.nailgun.NGServerFields 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
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
-
replScript
The clojure script to preceding the switch to the repl -
port
@Parameter(defaultValue="2113", property="clojure.nailgun.port") protected int port -
server
@Parameter(defaultValue="vimclojure.nailgun.NGServer", property="clojure.nailgun.server") protected String serverpre vimclojure 2.2.0: com.martiansoftware.nailgun.NGServer
-
-
Constructor Details
-
ClojureNailgunMojo
public ClojureNailgunMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-