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 203658 - Problem with sharability of web project files
Summary: Problem with sharability of web project files
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 14:13 UTC by _ rkubacki
Modified: 2016-07-07 08:53 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 _ rkubacki 2011-10-13 14:13:35 UTC
I have a web project and use Tomcat for my development. IDE updates nbproject/project.properties file according to this settings. 

Now another developer joins the same project but decides to use Glassfish as a target server and this file is regenerated. And because this file is versioned we are in a state where we can rewrite our changes repeatedly or waste our time watching for what should be included in a commit and what not.

Same for ant-deploy.xml file.
Comment 1 Martin Janicek 2011-10-21 09:13:45 UTC
Reassigning to Web Projects.
Comment 2 David Konecny 2011-10-21 09:47:18 UTC
Current design assumes that same family of servers would be used for a project - server type is stored in sharable project.properties and concrete instance of the server used by user is in private.properties. Which does not hold for your usecase.

I thought there might be a workaround in moving server type property (j2ee.server.type) from project.properties to private.properties. But that does not work - server type is always updated in project.properties.

This is a valid issue - perhaps server type property update should be smarter and either keep it in private.properties if that's what used did by hand or do not update it in case of valid server instance property. The later case is there likely for a reason though and I wonder what would got broken if I changed that.
Comment 3 Martin Balin 2016-07-07 08:53:07 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss