scala:cc

Full name:

org.scala-tools:maven-scala-plugin:2.12-SNAPSHOT:cc

Description:

Compile the main and test scala source directory in continuous (infinite loop). !! This is an util goal for commandline usage only (Do not use or call it in a pom) !!!

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.

Required Parameters

Name Type Since Description
displayCmd boolean - Display the command line called ?
Default value is: false.
scalaClassName String - className (FQN) of the scala tool to provide as
Default value is: scala.tools.nsc.Main.

Optional Parameters

Name Type Since Description
args String[] - compiler additionnals arguments
checkMultipleScalaVersions boolean - Check if every dependencies use the same version of scala-library.
Default value is: true.
compilerPlugins BasicArtifact[] - Compiler plugin dependencies to use when compiling. ex:
dependencies BasicArtifact[] - Additional dependencies/jar to add to classpath to run "scalaClassName" (scope and optional field not supported) ex :
<dependencies>
<dependency>
<groupId>org.scala-tools</groupId>
<artifactId>scala-compiler-addon</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

excludes Set - A list of exclusion filters for the compiler. ex :
<excludes>
<exclude>SomeBadFile.scala</exclude>
</excludes>

failOnMultipleScalaVersions boolean - Determines if a detection of multiple scala versions in the dependencies will cause the build to fail.
Default value is: false.
forceUseArgFile boolean - Force the use of an external ArgFile to run any forked process.
Default value is: false.
fork boolean - Forks the execution of scalac into a separate process.
Default value is: true.
includes Set - A list of inclusion filters for the compiler. ex :
<includes>
<include>SomeFile.scala</include>
</includes>

jvmArgs String[] - Jvm Arguments.
mainOutputDir File - The output directory for compilation.
mainSourceDir File - The main directory containing scala source for compilation
once boolean - Define if cc should run once or in infinite loop. (useful for test or working with editor)
scalaVersion String - Scala 's version to use
sendJavaToScalac boolean - Enables/Disables sending java source to the scala compiler.
Default value is: true.
testOutputDir File - The directory to place test compilation output in
testSourceDir File - The directory containing test source for compilation
useFsc boolean - Define if fsc should be used, else scalac is used. fsc => scala.tools.nsc.CompileClient, scalac => scala.tools.nsc.Main.
verbose boolean - Turns verbose output on.

Parameter Details

args:

compiler additionnals arguments
  • Type: java.lang.String[]
  • Required: No

checkMultipleScalaVersions:

Check if every dependencies use the same version of scala-library.
  • Type: boolean
  • Required: No
  • Expression: ${maven.scala.checkConsistency}
  • Default: true

compilerPlugins:

Compiler plugin dependencies to use when compiling. ex:
  • Type: org.scala_tools.maven.BasicArtifact[]
  • Required: No

dependencies:

Additional dependencies/jar to add to classpath to run "scalaClassName" (scope and optional field not supported) ex :
<dependencies>
<dependency>
<groupId>org.scala-tools</groupId>
<artifactId>scala-compiler-addon</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
  • Type: org.scala_tools.maven.BasicArtifact[]
  • Required: No

displayCmd:

Display the command line called ?
  • Type: boolean
  • Required: Yes
  • Expression: ${maven.scala.displayCmd}
  • Default: false

excludes:

A list of exclusion filters for the compiler. ex :
<excludes>
<exclude>SomeBadFile.scala</exclude>
</excludes>
  • Type: java.util.Set
  • Required: No

failOnMultipleScalaVersions:

Determines if a detection of multiple scala versions in the dependencies will cause the build to fail.
  • Type: boolean
  • Required: No
  • Default: false

forceUseArgFile:

Force the use of an external ArgFile to run any forked process.
  • Type: boolean
  • Required: No
  • Default: false

fork:

Forks the execution of scalac into a separate process.
  • Type: boolean
  • Required: No
  • Default: true

includes:

A list of inclusion filters for the compiler. ex :
<includes>
<include>SomeFile.scala</include>
</includes>
  • Type: java.util.Set
  • Required: No

jvmArgs:

Jvm Arguments.
  • Type: java.lang.String[]
  • Required: No

mainOutputDir:

The output directory for compilation.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.outputDirectory}

mainSourceDir:

The main directory containing scala source for compilation
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.sourceDirectory}/../scala

once:

Define if cc should run once or in infinite loop. (useful for test or working with editor)
  • Type: boolean
  • Required: No
  • Expression: ${once}

scalaClassName:

className (FQN) of the scala tool to provide as
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${maven.scala.className}
  • Default: scala.tools.nsc.Main

scalaVersion:

Scala 's version to use
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.scala.version}

sendJavaToScalac:

Enables/Disables sending java source to the scala compiler.
  • Type: boolean
  • Required: No
  • Default: true

testOutputDir:

The directory to place test compilation output in
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.testOutputDirectory}

testSourceDir:

The directory containing test source for compilation
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.testSourceDirectory}/../scala

useFsc:

Define if fsc should be used, else scalac is used. fsc => scala.tools.nsc.CompileClient, scalac => scala.tools.nsc.Main.
  • Type: boolean
  • Required: No
  • Expression: ${fsc}

verbose:

Turns verbose output on.
  • Type: boolean
  • Required: No
  • Expression: ${verbose}