Browse Source

apt fix. this should have gone in with the fork-only patch in march.

also: pulled java1.5 only rule. because java1.6 is coming.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@348762 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 19 years ago
parent
commit
a41ce8eb7f
2 changed files with 3 additions and 6 deletions
  1. +0
    -3
      src/main/org/apache/tools/ant/taskdefs/Apt.java
  2. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/compilers/AptExternalCompilerAdapter.java

+ 0
- 3
src/main/org/apache/tools/ant/taskdefs/Apt.java View File

@@ -259,9 +259,6 @@ public class Apt
*/
public void execute()
throws BuildException {
if (!JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5)) {
throw new BuildException(ERROR_WRONG_JAVA_VERSION);
}
super.execute();
}
}

+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/compilers/AptExternalCompilerAdapter.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");
* you may not use this file except in compliance with the License.
@@ -53,13 +53,13 @@ public class AptExternalCompilerAdapter extends DefaultCompilerAdapter {
cmd.setExecutable(apt.getAptExecutable());
setupModernJavacCommandlineSwitches(cmd);
AptCompilerAdapter.setAptCommandlineSwitches(apt, cmd);
int firstFileName = cmd.size();
//add the files
logAndAddFilesToCompile(cmd);

//run
return 0 == executeExternalCompile(cmd.getCommandline(),
cmd.size(),
firstFileName,
true);

}


Loading…
Cancel
Save