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 56845 - 4.0 project - libraries are not deployed
Summary: 4.0 project - libraries are not deployed
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-03-23 11:19 UTC by zikmund
Modified: 2006-03-24 12:48 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 zikmund 2005-03-23 11:19:11 UTC
Build 200503221900

1) Open 4.0 Web project with library/project reference (on classpath)
2) ERROR:
Items on classpath have turned off 'Deploy' column.
Comment 1 Marek Fukala 2005-03-23 16:47:20 UTC
This regression is caused by fix of Issue #50676 (removal of copytask in web
project). In particullar it is caused by the project.xml version increase.

The problem is ClassPathSupport.createWarIncludesMap(...) which generates a map
of <path-in-war/> values for project libraries. When called before project
upgrade, the method scans the document for curent version elements
(web-project/3), but the 4.0 project.xml is of web-project/1 so it returns
nothing. Since the path-in-war for all library items is null the checkboxes are
unchecked.

Just note that it is possible to build the project even the checkboxes are
unchecked (the project.xml contains correct path-in-war values).

I will fix it asap.
Comment 2 Marek Fukala 2005-03-23 17:52:45 UTC
fixed in trunk and QBE200503221900 branch.

Checking in WebProjectType.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProjectType.java,v  <--
 WebProjectType.java
new revision: 1.4; previous revision: 1.3
done
Checking in classpath/ClassPathSupport.java;
/cvs/web/project/src/org/netbeans/modules/web/project/classpath/ClassPathSupport.java,v
 <--  ClassPathSupport.java
new revision: 1.11; previous revision: 1.10
done

Checking in WebProjectType.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProjectType.java,v  <--
 WebProjectType.java
new revision: 1.3.4.1; previous revision: 1.3
done
Checking in classpath/ClassPathSupport.java;
/cvs/web/project/src/org/netbeans/modules/web/project/classpath/ClassPathSupport.java,v
 <--  ClassPathSupport.java
new revision: 1.10.2.1; previous revision: 1.10
done

Comment 3 zikmund 2005-03-24 08:49:24 UTC
Verified in 200503232205.