diff options
Diffstat (limited to 'sources')
-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(); |