Browse Source

Ensure the output of the modern compiler is going to be redirected as

well.

Prepare for a second release candidate build.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268110 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
99f3f52ede
3 changed files with 11 additions and 6 deletions
  1. +1
    -1
      build.xml
  2. +1
    -1
      docs/index.html
  3. +9
    -4
      src/main/org/apache/tools/ant/taskdefs/Javac.java

+ 1
- 1
build.xml View File

@@ -12,7 +12,7 @@

<property name="Name" value="Ant"/>
<property name="name" value="ant"/>
<property name="version" value="1.2rc1"/>
<property name="version" value="1.2rc2"/>

<property name="ant.home" value="."/>
<property name="src.bin.dir" value="src/bin"/>


+ 1
- 1
docs/index.html View File

@@ -26,7 +26,7 @@
<li>Dave Walend (<a href="mailto:dwalend@cs.tufts.edu">dwalend@cs.tufts.edu</a>)</li>
</ul>

<p>Version 1.2 - 2000/10/13</p>
<p>Version 1.2 - 2000/10/19</p>

<hr>
<h2>Table of Contents</h2>


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

@@ -508,13 +508,15 @@ public class Javac extends MatchingTask {
log("Using modern compiler", Project.MSG_VERBOSE);
Commandline cmd = setupJavacCommand();

// This won't build under JDK1.2.2 because the new compiler
// doesn't exist there.
//com.sun.tools.javac.Main compiler = new com.sun.tools.javac.Main();
//if (compiler.compile(args) != 0) {
PrintStream err = System.err;
PrintStream out = System.out;

// Use reflection to be able to build on all JDKs >= 1.1:
try {
PrintStream logstr =
new PrintStream(new LogOutputStream(this, Project.MSG_WARN));
System.setErr(logstr);
System.setErr(logstr);
Class c = Class.forName ("com.sun.tools.javac.Main");
Object compiler = c.newInstance ();
Method compile = c.getMethod ("compile",
@@ -530,6 +532,9 @@ public class Javac extends MatchingTask {
} else {
throw new BuildException("Error starting modern compiler", ex, location);
}
} finally {
System.setErr(err);
System.setErr(out);
}
}



Loading…
Cancel
Save