Browse Source

More cases whete includeJavaRuntime="false" may fail for gcj. PR 34638.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@675842 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
165e9f5dd2
3 changed files with 13 additions and 2 deletions
  1. +5
    -0
      WHATSNEW
  2. +5
    -1
      docs/manual/CoreTasks/javac.html
  3. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java

+ 5
- 0
WHATSNEW View File

@@ -84,6 +84,11 @@ Fixed bugs:
* Length task did not process nonexistent Resources even though these might * Length task did not process nonexistent Resources even though these might
conceivably still carry file length information. Bugzilla report 45271. conceivably still carry file length information. Bugzilla report 45271.


* <javac>'s includeJavaRuntime="false" should work for gcj now. Note
that you may need to set includeAntRuntime to false in order to
have full control.
Bugzilla Report 34638.

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




+ 5
- 1
docs/manual/CoreTasks/javac.html View File

@@ -295,7 +295,11 @@ invoking the compiler.</p>
<td valign="top">includeJavaRuntime</td> <td valign="top">includeJavaRuntime</td>
<td valign="top">Whether to include the default run-time <td valign="top">Whether to include the default run-time
libraries from the executing VM in the classpath; libraries from the executing VM in the classpath;
defaults to <code>no</code>.</td>
defaults to <code>no</code>.<br/>
<b>Note:</b> In some setups the run-time libraries may be part
of the "Ant run-time libraries" so you may need to explicitly
set includeAntRuntime to false to ensure that the Java
run-time libraries are not included.</td>
<td align="center" valign="top">No</td> <td align="center" valign="top">No</td>
</tr> </tr>
<tr> <tr>


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

@@ -66,7 +66,9 @@ public class Gcj extends DefaultCompilerAdapter {


// gcj doesn't support an extension dir (-extdir) // gcj doesn't support an extension dir (-extdir)
// so we'll emulate it for compatibility and convenience. // so we'll emulate it for compatibility and convenience.
classpath.addExtdirs(extdirs);
if (extdirs != null || includeJavaRuntime) {
classpath.addExtdirs(extdirs);
}


classpath.append(getCompileClasspath()); classpath.append(getCompileClasspath());




Loading…
Cancel
Save