Package scala_maven
Class ScalaConsoleMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- scala_maven.ScalaMojoSupport
-
- scala_maven.ScalaConsoleMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="console", requiresDependencyResolution=TEST, inheritByDefault=false, requiresDirectInvocation=true, executionStrategy="once-per-session") public class ScalaConsoleMojo extends ScalaMojoSupport
Run the Scala console with all the classes of the projects (dependencies and builded)
-
-
Field Summary
Fields Modifier and Type Field Description protected File
javaRebelPath
Path of the javaRebel jar.protected String
mainConsole
The console to run.protected boolean
useRuntimeClasspath
Add the runtime classpath, to the console's classpath ?protected boolean
useTestClasspath
Add the test classpath (include classes from test directory), to the console's classpath ?-
Fields inherited from class scala_maven.ScalaMojoSupport
addJavacArgs, addScalacArgs, args, checkMultipleScalaVersions, compilerPlugins, dependencies, displayCmd, encoding, factory, failOnMultipleScalaVersions, forceUseArgFile, fork, JAR, javacArgs, javacGenerateDebugSymbols, jvmArgs, localRepo, mavenProjectBuilder, POM, project, reactorProjects, remoteRepos, resolver, SCALA_COMPILER_ARTIFACTID, SCALA_LIBRARY_ARTIFACTID, scalaClassName, session, source, target, toolchainManager, useCanonicalPath
-
-
Constructor Summary
Constructors Constructor Description ScalaConsoleMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute()
-
Methods inherited from class scala_maven.ScalaMojoSupport
addCompilerPluginOptions, addCompilerToClasspath, addLibraryToClasspath, addToClasspath, addToClasspath, addToClasspath, addToClasspath, checkScalaVersion, execute, findScalaVersion, findVersionFromDependencies, findVersionFromPluginArtifacts, getAllDependencies, getArtifactJar, getArtifactJar, getCompilerDependencies, getCompilerJar, getCompilerPluginOptions, getDependencies, getEmptyScalaCommand, getEmptyScalaCommand, getJavacOptions, getLibraryJar, getPluginArtifactJar, getPluginArtifactJar, getScalaCommand, getScalaCommand, getScalaOptions, getScalaOrganization, isJavaSupportedByCompiler, resolveArtifactDependencies, resolveDependencyArtifacts, resolveDependencyArtifacts, scalaCompilerArtifact
-
-
-
-
Field Detail
-
mainConsole
@Parameter(property="mainConsole", defaultValue="scala.tools.nsc.MainGenericRunner", required=true) protected String mainConsole
The console to run.
-
useTestClasspath
@Parameter(property="maven.scala.console.useTestClasspath", defaultValue="true", required=true) protected boolean useTestClasspath
Add the test classpath (include classes from test directory), to the console's classpath ?
-
useRuntimeClasspath
@Parameter(property="maven.scala.console.useRuntimeClasspath", defaultValue="true", required=true) protected boolean useRuntimeClasspath
Add the runtime classpath, to the console's classpath ?
-
-
Method Detail
-
doExecute
protected void doExecute() throws Exception
- Specified by:
doExecute
in classScalaMojoSupport
- Throws:
Exception
-
-