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 34094 - packaing ignores project resources
Summary: packaing ignores project resources
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks: 33971
  Show dependency tree
 
Reported: 2003-06-02 15:57 UTC by Pavel Buzek
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 Pavel Buzek 2003-06-02 15:57:14 UTC
Create a new resource "Java Class Library", let it
point to some jar file. Goto content editor for
jarpckager build target and set 'true' for this
resource to include it into the jar. Action
'rebuild' on target ignores the resource. It is
not even mentioned in debug log on console.
Comment 1 Ondrej Rypacek 2003-06-02 16:13:20 UTC
Looks like the resource's content descriptor does not give any
contents. Debugging messages indicate, that it is queried, but no URLs
from it are processed. 
Comment 2 Pavel Buzek 2003-06-05 12:56:35 UTC
try the resource "Java Library for Web Module" that is implemented is
web module project. It does return contents but it is not packaged anyway.
Comment 3 Ondrej Rypacek 2003-07-04 11:01:24 UTC
The code on JP side is very simple and it is the same as for all other
kinds of inputs , which work, thus the problem was most likely outside
of JP.

Anyway, I just tried it on the current version and it works fine. It
packed the jar. I'm closing the bug as works-for-me. Please verify or
reopen. Thanks.

Comment 4 Pavel Buzek 2003-07-07 10:02:49 UTC
no, it still does not work for me, but I agree that the problem is
more likely in Java module's implementation of resources since it
works for the web module implementation of java resources.

The exact sequence is:
- create a new project "Web Application"
- create a resource "Java Classes", select a jar file
 (now the resource is displayed under resources node and you can
browse its contents)
- go to Output/Deployable Directory Structure and select Customize action
- go to second tab (Contents of build), find the resource and select
true in the second column (include in jar)
  (BTW: you cannot expand the resource here)
- rebuild Deployable Directory Structure target
  (the jar file is -not- included in the result)
Comment 5 Tomas Zezula 2003-07-14 11:39:56 UTC
Already fixed.
Comment 6 Jan Becicka 2003-11-25 14:03:34 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 7 Jan Becicka 2003-11-25 14:12:41 UTC
---> CLOSED