Browse Source

Don't print stack traces on compilation errors.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268102 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
b0027003f4
2 changed files with 9 additions and 3 deletions
  1. +5
    -3
      WHATSNEW
  2. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/Javac.java

+ 5
- 3
WHATSNEW View File

@@ -62,14 +62,14 @@ native2ascii, copy, move, mparse.
* copydir, copyfile, deltree and rename are now deprecated. They
should be replaced with the new copy, delete and move tasks.

* <java> uses ClassLoader of its own in no-fork mode if a classpath is
* <java> uses a ClassLoader of its own in no-fork mode if a classpath is
specified.

* <style> will create the necessary target directories and reprocess
all files if the stylesheet changes.

* New data types fileset and patternset - expected to get a broader use.
They as well as PATH like structures can now be defined on a global
They, as well as PATH like structures, can now be defined on a global
level and later be referenced by their id attribute.

* You can specify environment variables to <exec>.
@@ -114,4 +114,6 @@ cases.

* Nested <src> in <javac> caused NullPointerException.

* Corrupt Zip- and Jar-files ar now deleted if the task fails.
* Corrupt Zip- and Jar-files ar now deleted if the task fails.

* many more fixes we've forgotten to document here ...

+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/Javac.java View File

@@ -521,7 +521,11 @@ public class Javac extends MatchingTask {
throw new BuildException(FAIL_MSG, location);
}
} catch (Exception ex) {
if (ex instanceof BuildException) {
throw (BuildException) ex;
} else {
throw new BuildException("Error starting modern compiler", ex, location);
}
}
}



Loading…
Cancel
Save