From 1348ebb91c17cbc8506d2a1e323c3bff408348c8 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 13 Jan 2017 06:52:11 +0100 Subject: [PATCH] Eclipse tries to write to systemClasspath - PR 60582 thanks to @ebourg https://github.com/apache/ant/commit/984a03d1ceb6e4b5d194e4d639d0b0fca46d92be --- WHATSNEW | 7 +++++++ src/main/org/apache/tools/ant/types/Path.java | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/WHATSNEW b/WHATSNEW index e259f3995..b8b10d23a 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -1,6 +1,13 @@ Changes from Ant 1.9.8 TO Ant 1.9.9 =================================== +Fixed bugs: +----------- + + * Ant 1.9.8 made Path#systemClasspath final which broke the Eclipse + integration. + Bugzilla Report 60582 + Changes from Ant 1.9.7 TO Ant 1.9.8 =================================== diff --git a/src/main/org/apache/tools/ant/types/Path.java b/src/main/org/apache/tools/ant/types/Path.java index c4f244c74..16270e360 100644 --- a/src/main/org/apache/tools/ant/types/Path.java +++ b/src/main/org/apache/tools/ant/types/Path.java @@ -66,8 +66,9 @@ import org.apache.tools.ant.util.JavaEnvUtils; public class Path extends DataType implements Cloneable, ResourceCollection { // CheckStyle:VisibilityModifier OFF - bc + // non-final as some IDE integrations (at least Eclipse) want to override it /** The system classpath as a Path object */ - public static final Path systemClasspath = + public static Path systemClasspath = //NOSONAR new Path(null, System.getProperty("java.class.path"));