This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 177769 - <unjar> into build dir not honored
Summary: <unjar> into build dir not honored
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Autoproject (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@projects
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-27 10:58 UTC by Jesse Glick
Modified: 2016-07-07 08:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-11-27 10:58:31 UTC
git://github.com/rzwitserloot/lombok.patcher.git

clean & dist, then run TestAddFieldScript. Gives a NCDFE on org.objectweb.asm.ClassWriter. Inspection of build script reveals a curious setup: <junit> uses <classpath path="build/pack"/> where an earlier unpackLibs target runs <unjar dest="build/pack"><path refid="patcher.libs.path"/></unjar> which unpacks asm.jar into this dir. Since compilation also is sent to build/pack, the IDE's SFBQ assumes that all classes in this dir must be from src, which is not true in this case.

Could probably detect somehow that <unjar> is being run, then keep track of the fact that several origin JARs are being copied into build/pack. Thereafter, whenever build/pack is used in a CP entry, quietly insert those origin JARs too.

Of course there would be no issue if the original build script were just written more sanely: delete the unpackLibs target, include <classpath refid="patcher.libs.path"/> in <junit>, and fix <jar> in dist to include <zipfileset>s from the libs dir. (This would also be more efficient.)
Comment 1 Martin Balin 2016-07-07 08:37:31 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss