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 167315 - Manifest ignored for projects with libraries but without main class
Summary: Manifest ignored for projects with libraries but without main class
Status: RESOLVED DUPLICATE of bug 166895
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-18 15:49 UTC by jirka_x1
Modified: 2009-07-08 14:40 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 jirka_x1 2009-06-18 15:49:33 UTC
The automatically generate ant script does not include a custom manifest file if the project uses libraries but does not
define a main class. 

More precisely, it first does include it by executing the -do-jar-with-manifest target, but then overrides this with a
new jar without it by executing the -do-jar-with-libraries-without-manifest target.

Workaround: Define some main class.

Suggested short term solution: Add warning for projects that define ${manifest.file}, use libraries but do not define
${main.class}.
Comment 1 Milan Kubec 2009-06-19 09:41:22 UTC
Please provide better description. What project type did you create? What manifest is not included and where is not
included? Thanks for more info.
Comment 2 ttampe 2009-07-08 11:57:25 UTC
seems to be the same situation as in issue #166895.
A standard project has been added as attachment there.
Comment 3 Milan Kubec 2009-07-08 14:40:40 UTC
Indeed.

*** This issue has been marked as a duplicate of 166895 ***