[jboss-user] [JBoss Tools] - Copying and Branching a Project

Denis Golovin do-not-reply at jboss.com
Sat Mar 27 02:34:03 EDT 2010


Denis Golovin [http://community.jboss.org/people/dgolovin] replied to the discussion

"Copying and Branching a Project"

To view the discussion, visit: http://community.jboss.org/message/534263#534263

--------------------------------------------------------------
> John Bailo wrote:
> 
> Denis Golovin wrote:
> 
> +It can be changed in project properties dialog. Select "Web Project Settings" Category and you'll see 'Context Root' field to define it.+
> 
> I changed this.  Now it launches with MYPROJECTNEW in the URL, but the server doesn't find any files.  It still doesn't recognize the project
> 
That's probably because you still have old project name in hidden configuration files.

> +Change filter preferences to see hidden files which name started from .+
> 
> I'm not exactly sure where "Change Filter Preferences" is located?
In Java Package Explorer View press triangle button in task bar, like it shown on screen-shot below and select Filters... item

 http://community.jboss.org/servlet/JiveServlet/showImage/2423/filter-menu.png  http://community.jboss.org/servlet/JiveServlet/downloadImage/2423/450-362/filter-menu.png 

Then unselect ".* resources" item like it shown on screen-shot below

 http://community.jboss.org/servlet/JiveServlet/showImage/2424/filter-unselect.png  http://community.jboss.org/servlet/JiveServlet/downloadImage/2424/387-485/filter-unselect.png 

Then do the search for old name in all files within new renamed project and replace all entries with new name.

> John Bailo wrote:
> 
> +Delete hidden CVS meta data after you copied project and share project again. Another approach is exporting it before renaming to get just sources without CVS metadata.+
> Do I need to leave the \CVS folder?   I deleted the whole thing and the project wouldn't load.  Do I delete only the files in the folder?
> 
No matter what it names now all CVS folders still contain old module name in CVN\Repository file and that's why your commits come to the old CVS module in repository. So you ether should delete all CVS folders in your local filesystem or disconnect your project from CVS with meta information deletion through Team/Disconnect... context menu on your project in any eclipse navigator view. Then you should share it again in CVS module with new name.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/534263#534263]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100327/dce3342b/attachment.html 


More information about the jboss-user mailing list