https://bz.apache.org/bugzilla/show_bug.cgi?id=64912
Bug ID: 64912
Summary: [javac] Task regression between 1.10.6 and 1.10.8
Product: Ant
Version: 1.10.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 37552
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37552&action=edit
patch as described in issue description
## Problem
Triggered regression:
https://github.com/apache/ant/commit/15fcc941e01cb127bd2b137d88ed702dea6afa46#diff-91c4932c8be4bf0200b9885eac1d0f1052b4561e2c8f99fffcf874272dc56769R75
If an argument contains '#', it must be quoted in the JVM arg file as well.
Before, the classpath did not get included in arg file, so quoting was not
necessary.
Now, the classpath goes to the arg file, so it must be quoted.
## Proposed solution:
https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java#L552
1. `if (quoteFiles && args[i].contains(" ")) {`
2. `if (quoteFiles && Pattern.compile("[ #]").matcher(args[i]).find()) {`
--
You are receiving this mail because:
You are the assignee for the bug.