Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Best way to bring existing files & structure into Project & CVS?
Best way to bring existing files & structure into Project & CVS? [message #52069] Sat, 15 September 2007 23:36 Go to next message
Eclipse UserFriend
Originally posted by: Ned.WordAndDeed.com

I've got an existing project (osCommerce). I'd like to import the
files & structure into Eclipse as a Project and into CVS. And I'd
like the Project and the CVS repository to be properly connected.

As far as I can tell, the Eclipse installation went well. So far I'm
impressed, but also kind of overwhelmed by the rich environment.

Getting the set of file and structure into CVSNT works fine.

I think I've created a Project and that it was connected to CVS, but
I'm new to Eclipse, there's a lot happening, and I'm not sure I'd
recognize correct (or incorrect) configuration if I saw it. So I'm
starting again from the beginning.

So the question is, given a directory heirarchy outside of Eclipse and
full of files, what's the best way to bring this into Eclipse as a
project and into CVS?

TIA,
Ned
Eclipse 3.3.0
PDT 1.0.0v20070910
Windows 2000
Re: Best way to bring existing files & structure into Project & CVS? [message #52117 is a reply to message #52069] Sun, 16 September 2007 07:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Martin.eisengardt.de

It's simple. :-)

1. Within php explorer (pdt perspective) select "new project" -> "php
project". You can switch to any existing directory. That's it. Eclipse
stores some usefull information ("This is a PDT project") within file
".project". After importing your project You should commit this file. There
are some others and some small directories pdt uses (f.e. .setings). I
recommend not to commit ".cache" since every client can rebuild this
directory.

2. If this project already exists in cvs you can switch to cvs repository
exploring (perspective) and right click your project folder. Hit "Check out
as...". If eclipse finds this small file ".project" it will recreate the
complete project. If it does not find it Eclipse will ask You about project
natures.


However Eclipse caches file system information. If you manipulate files
outside eclipse You can hit "refresh" from context menu. Note: You should
not use more than one cvs/svn client. You should not use eclipse and
tortoise to work on the same directories.
Re: Best way to bring existing files & structure into Project & CVS? [message #52707 is a reply to message #52117] Tue, 18 September 2007 15:47 Go to previous message
Eclipse UserFriend
Originally posted by: Ned.WordAndDeed.com

On Sun, 16 Sep 2007 09:38:23 +0200, "Martin Eisengardt"
<Martin@eisengardt.de> wrote:

>It's simple. :-)
>
>1. Within php explorer (pdt perspective) select "new project" -> "php
>project". You can switch to any existing directory. That's it. Eclipse
>stores some usefull information ("This is a PDT project") within file
>".project". After importing your project You should commit this file. There
>are some others and some small directories pdt uses (f.e. .setings). I
>recommend not to commit ".cache" since every client can rebuild this
>directory.
>
>2. If this project already exists in cvs you can switch to cvs repository
>exploring (perspective) and right click your project folder. Hit "Check out
>as...". If eclipse finds this small file ".project" it will recreate the
>complete project. If it does not find it Eclipse will ask You about project
>natures.
>
>
>However Eclipse caches file system information. If you manipulate files
>outside eclipse You can hit "refresh" from context menu.

You confirmed what I have been doing. Good to have a second opinion.


> Note: You should
>not use more than one cvs/svn client. You should not use eclipse and
>tortoise to work on the same directories.
>
This is an important tip. Many newbies need to know this.

Thanks,
Ned
Previous Topic:How do I _completely_ delete a Project?
Next Topic:variables tab refreshing
Goto Forum:
  


Current Time: Wed Apr 24 21:03:40 GMT 2024

Powered by FUDForum. Page generated in 0.02884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top