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 162002 - [67cat]A ckeckbox in Libraries properties to copy dependences to dist not dist/lib
Summary: [67cat]A ckeckbox in Libraries properties to copy dependences to dist not dis...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-05 23:41 UTC by franci
Modified: 2011-08-31 14:08 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description franci 2009-04-05 23:41:40 UTC
I think it would be useful in some cases a checkbox for "Libraries" properties, to copy dependences (jars) to "dist"
better than "dist/lib".

Example:
 
Library projects: Cafe, Lait and Moka

Application projects: FindRepe, FindRepeGui, FindRepeImg and FindRepeImgGui

Dependences:

FindRepe: Cafe
FindRepeGui: FindRepe, Cafe, Lait
FindRepeImg: Cafe, Lait, Moka, FindRepe
FindRepeImgGui: Cafe, Lait, Moka, FindRepe, FindRepeImg

I want to distribute all applications packed together but there is a problem. I have the following jar files:

FindRepe: FindRepe.jar lib/Cafe.jar
FindRepeGui: FindRepeGui.jar lib/FindRepe.jar lib/Cafe.jar lib/Lait.jar
FindRepeImg: FindRepeImg.jar lib/Cafe.jar lib/Lait.jar lib/Moka.jar lib/FindRepe.jar
FindRepeImgGui: FindRepeImgGui.jar lib/Cafe.jar lib/Lait.jar lib/Moka.jar lib/FindRepe.jar lib/FindRepeImg.jar

So if I group them in a directory, have the following jar files:

FindRepe.jar 
FindRepeGui.jar 
FindRepeImg.jar 
FindRepeImgGui.jar 

lib/Cafe.jar
lib/Lait.jar
lib/Moka.jar 
lib/FindRepe.jar
lib/FindRepeImg.jar


FindRepe.jar FindRepeImg.jar are repeated but I can't delete any of both copies because

- if I delete lib/FindRepe.jar then FindRepeGui.jar, FindRepeImg.jar and FindRepeImgGui.jar will fail

- if I delete FindRepe.jar then lib/FindRepe.jar will fail (it needs lib/lib/Cafe.jar)

Solution: A checkbox for "Libraries" properties, to copy dependences (jars) to "dist" better than "dist/lib" (and the
the appropiate reference in the jar manifest). Then I would have

Cafe.jar
Lait.jar
Moka.jar 
FindRepe.jar
FindRepeImg.jar
FindRepeGui.jar 
FindRepeImgGui.jar 

Now there is only a copy of each jar and all would work as expected.
Comment 1 franci 2009-08-08 15:50:12 UTC
I was a member of NetCAT 6.7 team when adding this issue.