The Ant Scala compiler does not handle arguments with spaces in them

I attempted to pass a plugin as an additional parameter in the ‘ScalaCompileOptions’.

The plugin jar was physically stored in a directory with spaces in the name.

‘’’ compileScala {

scalaCompileOptions {

additionalParameters = [ ‘-Xplugin:/tmp/directory with spaces/scalac-scoverage-plugin_2.11-1.0.2.jar’]

} } ‘’’

The current implementation stringifies the list of arguments before passing as a single parameter to the ant scalac task. Any arguments with spaces in them must be quoted beforehand for this to work.

The zinc compiler does not have this restriction (it seems to fail if you do quote the options).

Is this a known issue please?

Thanks, Stu.