Browse Source

Don't override includeJavaRuntime in gcj-adapter, PR 34638

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278187 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
e07e19c339
2 changed files with 7 additions and 5 deletions
  1. +6
    -0
      WHATSNEW
  2. +1
    -5
      src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java

+ 6
- 0
WHATSNEW View File

@@ -214,6 +214,12 @@ Changes that could break older environments:
This means, the jikes compiler adapter now requires Jikes 1.15 or later. This means, the jikes compiler adapter now requires Jikes 1.15 or later.
Bugzilla Reports 25868, 26404 and 32609. Bugzilla Reports 25868, 26404 and 32609.


* The gcj compiler adapter used to include the Java runtime classes
even if includeJavaRuntime was set to false, unless the
bootclasspath has been specified as well. It will now always adhere
to includeJavaRuntime, you may need to set it to true explicitly now
if you relied on the old behavior.

Other changes: Other changes:
-------------- --------------




+ 1
- 5
src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2001-2004 The Apache Software Foundation
* Copyright 2001-2005 The Apache Software Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -61,10 +61,6 @@ public class Gcj extends DefaultCompilerAdapter {
// so we'll emulate it for compatibility and convenience. // so we'll emulate it for compatibility and convenience.
classpath.addExtdirs(extdirs); classpath.addExtdirs(extdirs);


if (bootclasspath == null || bootclasspath.size() == 0) {
// no bootclasspath, therefore, get one from the java runtime
includeJavaRuntime = true;
}
classpath.append(getCompileClasspath()); classpath.append(getCompileClasspath());


// Gcj has no option for source-path so we // Gcj has no option for source-path so we


Loading…
Cancel
Save