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 224341 - Unable to run Netbeans platform within IDE when app.name contains spaces
Summary: Unable to run Netbeans platform within IDE when app.name contains spaces
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.2.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-31 19:19 UTC by ccannell
Modified: 2013-01-03 14:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch for harness/run.xml to allow spaces in app.name (573 bytes, application/octet-stream)
2012-12-31 19:19 UTC, ccannell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ccannell 2012-12-31 19:19:46 UTC
Created attachment 129787 [details]
Patch for harness/run.xml to allow spaces in app.name

If app.name in project.properties contains spaces, the run ANT target fails on Mac. The problem is in harness/run.xml line 174. The following snippet of code from harness/run.xml does not escape spaces for app.name in the run.args.mac property.

        <condition property="run.args.mac" value="-J-Xdock:name=${app.name}" else="">
            <os family="mac"/>
        </condition>

The following change fixes the problem (single quotes around ${app.name})

    <condition property="run.args.mac" value="-J-Xdock:name='${app.name}'" else="">
        <os family="mac"/>
    </condition>

The updated lines can be added to the users build.xml as a workaround. See attached patch for a permanent fix.
Comment 1 ccannell 2012-12-31 19:21:37 UTC
The issue only affects Mac users.
Comment 2 ccannell 2012-12-31 22:24:13 UTC
Affects 7.3 as well.
Comment 3 Jaroslav Tulach 2013-01-03 14:10:42 UTC
Thanks for the report and suggested way to address it. I've integrated the fix as ergonomics#362d818e069e
Comment 4 ccannell 2013-01-03 14:51:36 UTC
Thanks.

http://hg.netbeans.org/ergonomics/rev/362d818e069e