Browse Source

Rename the attribute of <javac>'s <compilerarg> from implementation to

compiler.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272017 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
a94e3de322
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      docs/manual/CoreTasks/javac.html
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Javac.java
  3. +2
    -2
      src/testcases/org/apache/tools/ant/taskdefs/JavacTest.java

+ 2
- 2
docs/manual/CoreTasks/javac.html View File

@@ -369,9 +369,9 @@ used.</p>
<td valign="top">path</td>
</tr>
<tr>
<td valign="top">implementation</td>
<td valign="top">compiler</td>
<td>Only pass the specified argument if the chosen
implementation matches the value of this attribute.
compiler implementation matches the value of this attribute.
Legal values are the
same as those in the above <a href="#compilervalues">list</a> of valid
compilers.)</td>


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

@@ -850,7 +850,7 @@ public class Javac extends MatchingTask {

private String impl;

public void setImplementation(String impl) {
public void setCompiler(String impl) {
this.impl = impl;
}



+ 2
- 2
src/testcases/org/apache/tools/ant/taskdefs/JavacTest.java View File

@@ -127,7 +127,7 @@ public class JavacTest extends TestCase {
assertEquals("unconditional single arg", 1, args.length);
assertEquals(testArg, args[0]);

arg.setImplementation("jikes");
arg.setCompiler("jikes");
args = javac.getCurrentCompilerArgs();
assertNotNull(args);
assertEquals("implementation is jikes but build.compiler is null",
@@ -161,7 +161,7 @@ public class JavacTest extends TestCase {
String prefect = "Prefect";
String testArg = ford + " " + prefect;
arg.setValue(testArg);
arg.setImplementation("extJavac");
arg.setCompiler("extJavac");
javac.setFork(true);
String[] args = javac.getCurrentCompilerArgs();
assertEquals("both are forked javac", 1, args.length);


Loading…
Cancel
Save