diff options
author | michelou <michelou@epfl.ch> | 2011-11-27 11:39:54 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2011-11-27 11:39:54 +0000 |
commit | 37201dd3cd6da6ca47f651a5b346a7706ae1e561 (patch) | |
tree | 0d1581939e649b63ce9bf6233d33bcae618b955c /src/compiler/scala/tools/ant/Scalac.scala | |
parent | afc755916f7e67f1f2c899972de8801b1ef62543 (diff) | |
download | scala-37201dd3cd6da6ca47f651a5b346a7706ae1e561.tar.gz scala-37201dd3cd6da6ca47f651a5b346a7706ae1e561.tar.bz2 scala-37201dd3cd6da6ca47f651a5b346a7706ae1e561.zip |
attempt to fix reopened SI-5196
Diffstat (limited to 'src/compiler/scala/tools/ant/Scalac.scala')
-rw-r--r-- | src/compiler/scala/tools/ant/Scalac.scala | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/ant/Scalac.scala b/src/compiler/scala/tools/ant/Scalac.scala index 72330615cc..7aff4e3e8e 100644 --- a/src/compiler/scala/tools/ant/Scalac.scala +++ b/src/compiler/scala/tools/ant/Scalac.scala @@ -36,6 +36,7 @@ import scala.tools.nsc.reporters.{Reporter, ConsoleReporter} * - `bootclasspathref`, * - `extdirs`, * - `extdirsref`, + * - `argfile`, * - `dependencyfile`, * - `encoding`, * - `target`, @@ -126,8 +127,9 @@ class Scalac extends ScalaMatchingTask with ScalacShared { /** The external extensions path to use for this compilation. */ protected var extdirs: Option[Path] = None + protected var argfile: Option[File] = None /** The dependency tracking file. */ - protected var dependencyfile: Option[String] = None + protected var dependencyfile: Option[File] = None /** The character encoding of the files to compile. */ protected var encoding: Option[String] = None @@ -229,7 +231,7 @@ class Scalac extends ScalaMatchingTask with ScalacShared { } /** Sets the `compilerPath` attribute. Used by [[http://ant.apache.org Ant]]. * @param input The value of `compilerPath`. */ - def setCompilerPath(input : Path) { + def setCompilerPath(input: Path) { compilerPath = setOrAppend(compilerPath, input) } @@ -299,9 +301,15 @@ class Scalac extends ScalaMatchingTask with ScalacShared { def setExtdirsref(input: Reference) = createExtdirs().setRefid(input) + /** Sets the `argfile` attribute. Used by [[http://ant.apache.org Ant]]. + * @param input The value of `argfile`. */ + def setArgfile(input: File) { + argfile = Some(input) + } + /** Sets the `dependencyfile` attribute. Used by [[http://ant.apache.org Ant]]. * @param input The value of `dependencyfile`. */ - def setDependencyfile(input: String) { + def setDependencyfile(input: File) { dependencyfile = Some(input) } @@ -584,7 +592,8 @@ class Scalac extends ScalaMatchingTask with ScalacShared { if (!bootclasspath.isEmpty) settings.bootclasspath.value = asString(getBootclasspath) if (!extdirs.isEmpty) settings.extdirs.value = asString(getExtdirs) - if (!dependencyfile.isEmpty) settings.dependencyfile.value = dependencyfile.get + if (!dependencyfile.isEmpty) + settings.dependencyfile.value = asString(dependencyfile.get) if (!encoding.isEmpty) settings.encoding.value = encoding.get if (!backend.isEmpty) settings.target.value = backend.get if (!logging.isEmpty && logging.get == "verbose") |