You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2020/10/06 16:42:29 UTC
[Bug 64790] New: task loses classpath libraries when forked
and special characters exist in the file path since Ant 1.10.7
https://bz.apache.org/bugzilla/show_bug.cgi?id=64790
Bug ID: 64790
Summary: <javac> task loses classpath libraries when forked and
special characters exist in the file path since Ant
1.10.7
Product: Ant
Version: 1.10.7
Hardware: PC
OS: All
Status: NEW
Severity: regression
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: xma@tibco.com
Target Milestone: ---
After upgrading to the latest version of Ant (1.10.7+), our project will no
longer compile due to the problem of classpath when all the following
conditions are matched :
- Use the attribute fork=yes
- A large amount of source code or java libraries in classpath (The length of
the "javac" command line generated by Ant exceed more than 4000 characters)
- Some special characters are located in the file path. e.g., Hashtag "#".
- Use ANT 1.10.7+
I noticed that the option "-classpath" is moved into an arg file after this
pull request https://github.com/apache/ant/pull/98 which results in an
compilation error from javac because of the file path with special characters
in an arg file.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 64790] task loses classpath libraries when forked and
special characters exist in the file path since Ant 1.10.7
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64790
Jaikiran Pai <ja...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from Jaikiran Pai <ja...@apache.org> ---
I've pushed a fix for https://bz.apache.org/bugzilla/show_bug.cgi?id=64912,
which I believe should fix this issue too.
*** This bug has been marked as a duplicate of bug 64912 ***
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 64790] task loses classpath libraries when forked and
special characters exist in the file path since Ant 1.10.7
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64790
--- Comment #1 from Xiaojun MA <xm...@tibco.com> ---
For example :
<javac destdir="/tmp/#javac" optimize="true" fork="yes"
executable="/path/to/javac" memoryMaximumSize="2048m" debug="on" source="1.8"
encoding="UTF-8">
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 64790] task loses classpath libraries when forked and
special characters exist in the file path since Ant 1.10.7
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64790
--- Comment #2 from Jaikiran Pai <ja...@apache.org> ---
This appears similar to https://bz.apache.org/bugzilla/show_bug.cgi?id=64912.
We have been able to narrow it down to only Java 8 version of javac which shows
this issue. Which vendor and version of Java installation do you use?
--
You are receiving this mail because:
You are the assignee for the bug.