https://bz.apache.org/bugzilla/show_bug.cgi?id=65621
Bug ID: 65621
Summary: Update from Ant 1.10.5 to 1.10.11 breaks build
Product: Ant
Version: 1.10.11
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
An update from Ant 1.10.5 to 1.10.11 breaks out build. Switching back to 1.10.5
fixed the issue.
The problem are javac tasks that produce lots of errors like "error: package
org.slf4j does not exist" which indicates that the nested classpath element
(see below) seems not to be effective. The Ant javac task seems to pass the
options and arguments via a temporary file with very short lifetime to the
javac binary. So it's unfortunately very difficult to find out what is being
actually passed to the compiler.
<target name="target.build.java.common">
<javac
failonerror="true"
includeAntRuntime="false"
fork="true"
memoryMaximumSize="256m"
debug="${java.debug}"
optimize="on"
srcdir="${build.modules.dir}/common/src/main/java"
destdir="${build.modules.dir}/common/target/classes"
encoding="UTF-8"
source="16"
target="16">
<compilerarg
value="--add-exports=java.xml/com.sun.org.apache.xml.internal.serializer=ALL-UNNAMED"/>
<compilerarg value="-Xlint:none"/>
<classpath>
<pathelement path="${build.modules.dir}/common/lib/*"/>
</classpath>
</javac>
</target>
${build.modules.dir}/common/lib/* expands to the correct path at runtime.
--
You are receiving this mail because:
You are the assignee for the bug.