diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-22 00:15:32 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-22 00:15:32 +0000 |
commit | 91cdb1531656d9240e9ee64509ab528d727d1b51 (patch) | |
tree | a33bbdb66b0ee1bb147bb8628902f66bc7f66756 /src/compiler/scala/tools/ant/Scalac.scala | |
parent | f07bdbab911a7bcef042373d45fab302753f5a1f (diff) | |
download | scala-91cdb1531656d9240e9ee64509ab528d727d1b51.tar.gz scala-91cdb1531656d9240e9ee64509ab528d727d1b51.tar.bz2 scala-91cdb1531656d9240e9ee64509ab528d727d1b51.zip |
More laboring on Settings, ClassPaths, Ant Task...
More laboring on Settings, ClassPaths, Ant Tasks, Partest, and similar
epicenters of thrilldom. No review.
Diffstat (limited to 'src/compiler/scala/tools/ant/Scalac.scala')
-rw-r--r-- | src/compiler/scala/tools/ant/Scalac.scala | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/compiler/scala/tools/ant/Scalac.scala b/src/compiler/scala/tools/ant/Scalac.scala index 1b96a47420..490b6fb349 100644 --- a/src/compiler/scala/tools/ant/Scalac.scala +++ b/src/compiler/scala/tools/ant/Scalac.scala @@ -69,7 +69,7 @@ import scala.tools.nsc.reporters.{Reporter, ConsoleReporter} * * @author Gilles Dubochet, Stephane Micheloud */ -class Scalac extends MatchingTask { +class Scalac extends MatchingTask with ScalacShared { /** The unique Ant file utilities instance to use in this task. */ private val fileUtils = FileUtils.getFileUtils() @@ -606,7 +606,7 @@ class Scalac extends MatchingTask { } java setClasspath scalacPath - java setClassname "scala.tools.nsc.Main" + java setClassname MainClass // Write all settings to a temporary file def writeSettings() : File = { @@ -616,7 +616,7 @@ class Scalac extends MatchingTask { val out = new PrintWriter(new BufferedWriter(new FileWriter(file))) try { - for (setting <- settings.settingSet ; arg <- setting.unparse) + for (setting <- settings.visibleSettings ; arg <- setting.unparse) out println escapeArgument(arg) for (file <- sourceFiles) out println file.getAbsolutePath @@ -625,11 +625,7 @@ class Scalac extends MatchingTask { file } - - java.createArg() setValue ("@" + writeSettings.getCanonicalPath) - log(java.getCommandLine.getCommandline.mkString(" "), Project.MSG_VERBOSE) - - val res = java.executeJava() + val res = execWithArgFiles(java, List(writeSettings.getCanonicalPath)) if (failonerror && res != 0) error("Compilation failed because of an internal compiler error;"+ " see the error output for details.") |