This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 72d6a2747 disable annotation processors during (javac) compilation
72d6a2747 is described below

commit 72d6a274733d7c5460efc9ae53d645246184dabe
Author: Jaikiran Pai <jaiki...@apache.org>
AuthorDate: Mon Aug 21 12:34:14 2023 +0530

    disable annotation processors during (javac) compilation
---
 bootstrap.bat | 1 +
 bootstrap.sh  | 1 +
 build.xml     | 4 ++++
 3 files changed, 6 insertions(+)

diff --git a/bootstrap.bat b/bootstrap.bat
index 1d79958d2..39f7165ef 100755
--- a/bootstrap.bat
+++ b/bootstrap.bat
@@ -46,6 +46,7 @@ set TOOLS=src\main\org\apache\tools
 set CLASSDIR=build\classes
 
 SET CLASSPATH=%LOCALCLASSPATH%;%CLASSDIR%;src\main;%CLASSPATH%
+SET BOOTJAVAC_OPTS="-proc:none %BOOTJAVAC_OPTS%"
 
 echo JAVA_HOME=%JAVA_HOME%
 echo JAVA=%JAVA%
diff --git a/bootstrap.sh b/bootstrap.sh
index c97abb328..6c91d35b9 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -115,6 +115,7 @@ TOOLS=src/main/org/apache/tools
 CLASSDIR=build/classes
 
 CLASSPATH=${CLASSDIR}:src/main:${CLASSPATH}
+BOOTJAVAC_OPTS="-proc:none ${BOOTJAVAC_OPTS}"
 
 # For Cygwin, switch to Windows format before running java
 if $cygwin; then
diff --git a/build.xml b/build.xml
index 02f86e5c6..fdaa94524 100644
--- a/build.xml
+++ b/build.xml
@@ -660,6 +660,7 @@
            source="${javac.source}"
            release="${javac.release}"
            optimize="${optimize}">
+      <compilerarg line="-proc:none"/>
       <classpath>
         <!-- A very limited classpath which only doesn't include optional 
libraries,
          which the classes in confined package aren't meant to depend on -->
@@ -713,6 +714,7 @@
            source="${javac.source}"
            release="${javac.release}"
            optimize="${optimize}">
+      <compilerarg line="-proc:none"/>
       <classpath refid="classpath"/>
 
       <selector id="conditional-patterns">
@@ -763,6 +765,7 @@
            target="${javac.target}"
            source="${javac.source}"
            optimize="${optimize}">
+      <compilerarg line="-proc:none"/>
       <classpath refid="classpath"/>
 
       <selector id="conditional-patterns-jdk9+">
@@ -1638,6 +1641,7 @@
            source="${javac.source}"
            release="${javac.release}"
            deprecation="${deprecation}">
+      <compilerarg line="-proc:none"/>
       <classpath refid="tests-classpath"/>
 
       <selector refid="conditional-patterns"/>

Reply via email to