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 249937

Summary: Use App Title instead of App Name in OS X Application
Product: apisupport Reporter: rhwood
Component: HarnessAssignee: pgebauer <pgebauer>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Patch to package OS X app using app.title

Description rhwood 2015-01-21 22:44:04 UTC
Created attachment 151608 [details]
Patch to package OS X app using app.title

By default NetBeans sets the ant build property app.name to branding.token but puts the "human readable" application name in app.title. This causes the following:
- App name on disk does not match app title in main window.
- App name in OS X menu bar does not match app title in main window.

The attached patch uses the app.title instead of the app.name to create the OS X application bundle. It introduces the following default behavior on OS X:
- App name on disk matches app title in main window (excluding version)
- App name in OS X menu bar matches app title in main window (excluding version)
As a side effect the following changes also occur in the build:
- A new OS X-specific launch script replaces the symlink to the standard launch script for UNIX/Linux/OS X in the OS X application bundle. This script figures out the application title from the bundle name before calling the default UNIX/Linux/OS X launch script
- A simple zipped distribution of the OS X application bundle is created (this had been commented out due to issues with the symlink)

Can you please consider including this patch for inclusion in the Module Build Harness?
Comment 1 rhwood 2015-01-22 10:29:24 UTC
(In reply to rhwood from comment #0)
> This causes the following:
 should be "This causes the following behavior on OS X:"