Summary: | taskdef can't find existing resource in jar file on the first try, but on the second - JarUrlConnection.connect() fails | ||
---|---|---|---|
Product: | Ant | Reporter: | René Krell <renda.krell> |
Component: | Core tasks | Assignee: | Ant Notifications List <notifications> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | renda.krell |
Priority: | P2 | ||
Version: | 1.9.1 | ||
Target Milestone: | 1.9.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: |
patch for ProjectHelper2
Patch for the ANT_18_BRANCH |
Description
René Krell
2013-01-23 11:53:07 UTC
OS, where this bug occurs: Linux 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux JRE, which this bug occurs with: - Oracle JRE 6u38, Linux 64 bit - IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr7-20091214_49398 (JIT enabled, AOT enabled) Created attachment 29888 [details]
patch for ProjectHelper2
suggested patch based on the information in the bug report
Created attachment 29889 [details]
Patch for the ANT_18_BRANCH
Here is another patch for the Ant 1.8 branch which solves the problem for me. Are you able to apply this? Thanks
I've combined both patches and also fixed some other places that looked suspicious. svn revision 1554684 amended with revision 1554840 Would appreciate a release with this fix, this still occurs in 1.9.3 for me. let's discuss a schedule for the next release on the user list Unfortunately I got the reopen this for the following reason: The most latest suggested patch didn't apply for me, the problem reoccurred. The is necessary to apply this patch for solving it: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Antlib.java?r1=1375571&r2=1554684&pathrev=1554840 Thus, using conn.setDefaultUseCaches(false), not just setUseCaches(false), for whatever reason. |