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

Summary: Manifest ignored for projects with libraries but without main class
Product: projects Reporter: jirka_x1 <jirka_x1>
Component: Ant ProjectAssignee: Milan Kubec <mkubec>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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 ***