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 82388 - Warn about use of old harness with /3 schema project.xml
Summary: Warn about use of old harness with /3 schema project.xml
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 54161
  Show dependency tree
 
Reported: 2006-08-10 14:14 UTC by pzajac
Modified: 2007-10-18 23:43 UTC (History)
1 user (show)

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 pzajac 2006-08-10 14:14:30 UTC
[060810]
Earilier harness (50u1, 50) cannot parse NBM schema /3. It is necessary to check
the  harness version in these areas:

1) Platform manager
Platform manager allows to set harness version.

2) During upgrading schema from /2 to /3 in NBM project. Maybe it is better to
ask user to switch harness version on opening standalone module or suite with
older platform.
Comment 1 Tomas Danek 2006-11-20 13:50:44 UTC
typical usecase to meet this:
- user develops in 6.0 trunk
- user registers 5.5 platform and set "use platform supplied harness"
- create new module, try to build it: C:\Program
Files\netbeans-5.5\harness\common.xml:33: No <data> in C:\Documents and
Settings\Tomas\My Documents\NetBeansProjects\module3\nbproject\project.xml
BUILD FAILED (total time: 0 seconds)

it's very hard for ordinary user to guess what's going on.
Comment 2 Jesse Glick 2006-11-20 20:41:04 UTC
Now shows an error dialog explaining the situation when any Ant action is attempted.

committed   * Up-To-Date  1.148      
src/org/netbeans/modules/apisupport/project/NbModuleProject.java
committed   * Up-To-Date  1.40       
src/org/netbeans/modules/apisupport/project/ui/Bundle.properties
committed   * Up-To-Date  1.28       
src/org/netbeans/modules/apisupport/project/ui/ModuleActions.java
committed   * Up-To-Date  1.23       
src/org/netbeans/modules/apisupport/project/ui/SuiteActions.java
Comment 3 Tomas Danek 2006-11-21 11:54:08 UTC
great, but is it possible also to show this dialog when you invoke on module
these actions:

Run
Generate architecture descriptions
Create NBM

as they don't show this dialog and perform unsuccessful tasks? 
Comment 4 Jesse Glick 2006-11-21 18:24:23 UTC
Ah, missed those.
Comment 5 Jesse Glick 2007-10-18 23:43:42 UTC
Should all be covered now.

Checking in ModuleActions.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/ModuleActions.java,v  <--
 ModuleActions.java
new revision: 1.36; previous revision: 1.35
done