diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-10-07 18:53:39 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-10-07 18:53:39 +0000 |
commit | 72b4cec44aaee31d2573cb6d94fab61a07d32b9d (patch) | |
tree | d48f07f2be2f352a2e39d1f999ab5500cda7a262 | |
parent | 7c11786a48d5ab9e5cb2ba2b4d464fa784aa87d2 (diff) | |
download | scala-72b4cec44aaee31d2573cb6d94fab61a07d32b9d.tar.gz scala-72b4cec44aaee31d2573cb6d94fab61a07d32b9d.tar.bz2 scala-72b4cec44aaee31d2573cb6d94fab61a07d32b9d.zip |
Improved error messages.
-rw-r--r-- | sources/scala/tools/scalac/ant/Scalac.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/scala/tools/scalac/ant/Scalac.java b/sources/scala/tools/scalac/ant/Scalac.java index 0b0b3c3f7c..37d8e21cb4 100644 --- a/sources/scala/tools/scalac/ant/Scalac.java +++ b/sources/scala/tools/scalac/ant/Scalac.java @@ -377,7 +377,11 @@ public class Scalac extends MatchingTask { } - log("Compiling " + sourceFilesList.size() + " source file" + (sourceFilesList.size() == 1 ? "" : "s") + (destination != null ? " to " + destination.toString() : "")); + if (sourceFilesList.isEmpty()) { + log("No files selected for compilation"); + } else { + log("Compiling " + sourceFilesList.size() + " source file" + (sourceFilesList.size() == 1 ? "" : "s") + (destination != null ? " to " + destination.toString() : "")); + } // Builds-up the compilation settings for Scalac with the existing Ant parameters. Reporter reporter = new ConsoleReporter(); |