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 169056 - 6.5 platform with "platform" in name doesn't work in 6.7
Summary: 6.5 platform with "platform" in name doesn't work in 6.7
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: rmichalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-23 15:34 UTC by maxnitribitt
Modified: 2009-07-29 05:59 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 maxnitribitt 2009-07-23 15:35:00 UTC
I found a problem upgrading an existing application with a custom platform created in 6.5 to 6.7.

Steps to reproduce:
1. Create a Platform application with NB 6.5 named "testplatform" (using this name is important!).
2. Open the resulting project in 6.7 and invoke the create_platform task.
3. Copy the resulting platform from the dist dir of the app (otherwise you'll run into a bug described elesewhere)
4. In 6.7 create a new Platform app (e.g. "testuseplatform" ) and go to project properties-> libraries -> add platform
5. Register a platform using the testplatform dir
6. Use this as the platform for your project.
7. try to run the project it will fail with some weird error like this:

run:
/Applications/NetBeans/NetBeans 6.7.app/Contents/Resources/NetBeans/harness/suite.xml:468: The following error occurred
while executing this line:
/Applications/NetBeans/NetBeans 6.7.app/Contents/Resources/NetBeans/harness/run.xml:119:
/Users/antonepple/Desktop/testplatform/elster:/Users/antonepple/Desktop/testplatform not found.

If you create your "testplatform" project initially using 6.7 the problem doesn't occur.

The problem seems to be caused by the use of the string "platform" in the name of the application. It seems some ant
task evaluates the path by looking for the string "platform" with a regular expression and spoils the path, because
there's not only platform10. 

workaround:

In project.properties rename your application:
app.name=test

Then it works...

I didn't have time to dig too deep this time, but the path conversions around cluster.path.id and cluster.path.evaluated
and the ConvertClusterPath might be worth a look.
Comment 1 rmichalsky 2009-07-28 16:12:10 UTC
Aaargh, darned create-platform target again, I'll delete it silently one day, I swear... :-). Thanks for catching this.

core-main #591ae09ea721
Comment 2 maxnitribitt 2009-07-28 16:18:28 UTC
Hi Richard,
don't you dare deleting it - it's my source of everlasting joy ;-). Thanks for Fixing it!
--Toni
Comment 3 Quality Engineering 2009-07-29 05:59:31 UTC
Integrated into 'main-golden', will be available in build *200907290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/591ae09ea721
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #169056: fixing running against custom platform named "<something>platform"