public class ScalaRunMojo extends ScalaMojoSupport
Modifier and Type | Field and Description |
---|---|
protected String |
addArgs
Additional parameter to use to call the main class
Using this parameter only from command line ("-DaddArgs=arg1|arg2|arg3|..."), not from pom.xml.
|
protected String |
launcher
The class to use when launching a scala program
|
protected Launcher[] |
launchers
A list of launcher definition (to avoid rewriting long command line or share way to call an application)
launchers could be define by :
<launchers>
<launcher>
<id>myLauncher</id>
<mainClass>my.project.Main</mainClass>
<args>
<arg>arg1</arg>
</args>
<jvmArgs>
<jvmArg>-Xmx64m</jvmArg>
</jvmArgs>
</launcher>
<launcher>
<id>myLauncher2</id>
...
|
protected String |
mainClass
Main class to call, the call use the jvmArgs and args define in the pom.xml, and the addArgs define in the command line if define.
|
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 and Description |
---|
ScalaRunMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute() |
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
protected String launcher
protected String addArgs
protected Launcher[] launchers
<launchers> <launcher> <id>myLauncher</id> <mainClass>my.project.Main</mainClass> <args> <arg>arg1</arg> </args> <jvmArgs> <jvmArg>-Xmx64m</jvmArg> </jvmArgs> </launcher> <launcher> <id>myLauncher2</id> ... <><> </launcher> </launchers>
protected String mainClass
protected void doExecute() throws Exception
doExecute
in class ScalaMojoSupport
Exception
Copyright © 2012–2017. All rights reserved.