How to copy a local folder to Subclipse / Eclipse folder structure? - eclipse

Can I drag&drop a folder from my home folder that has many subdirs and even .svn subdirs into my Navigator view in my subclipsed Ecplipse?

Found the answer by trying - Yes you can. You have to right click on the new folder and choose "add to version control".
If you have folders / subfolders however that contain an old .svn folder, you have that folder remove from eclipse again, commit and copy over again.
Alternatively, just recreate the folders / subfolders by hand in eclipse and drag&drop the files over
Either way you will loose Version Control of the old files. If you want to keep Version Control you have to use the SVNAdmin tool to do the migration.

If you want to work with files that are in a Subversion repository, why not check them out again from Eclipse?

Related

Folders are not listed in Eclipse's Project view - preventing marking a folder as "source folder"

I have messed up my Eclipse project and am trying to create a new workspace and re-importing everything but that is more complicated than one would expect.
Currently the problem is that Eclipse doesn't recognize in what folders the source files are stored. Usually you can right click on a folder and mark it as a source folder:
But in my new workspace, no folders are displayed, only packages, and it looks the same in Package explorer and Project explorer:
As you can see src is in the "path" but visually it is not a folder on a separate level in the hierarchy.
If I create another workspace and add a couple of projects it looks right:
Why are my folders missing? How do I make Eclipse show them and/or select them as source folders?
src is inside of a folder that is already set as a source folder. You'll have to unset the parent folder as a Source folder before you can set src to be one.

Merge the src folder in Eclipse

How can I merge the src folder in eclipse without showing the packages,into a single folder.
i
I decided that, as #C-Otto said if you don't need resources or tests then they can remove as source folders. And these are not packages.
To remove as source folders.
Goto:
Project->Properties->Build Path->Sources Tab and remove what you wish :)

Eclipse deleting project but not the source code

Is there a way to delete an Eclipse project while preserving all the resources? (i.e. source code, etc.).
I guess I could delete the following files from the project directory manually:
.cproject
.project
But I am concerned that my Eclipse .metadata information that lives in my workspace may still look for those files and get confused if I delete the project files manually.
What I usually do is remove the project using eclipse (do not delete project contents on disk) and remove any .* eclipse-related file that could stay.
With the checkout unchecked, it deletes the project informations while preserving the source code.

How do I relocate my Android project in SVN?

I set up an SVN repository for my Android project the wrong way and I would appreciated some help correcting it.
I created a standard SVN repository as follows (I did not create a root "svn" folder because I only plan to store one project in this repository):
http://myserver/MyProject
/trunk
/branches
/tags
When I checked in my project it went into the root folder instead of the /trunk folder. So I had the folders:
http://myserver/MyProject
/trunk
/branches
/tags
/MyProject
/src
/res
/...etc
I've been working this way for a while, using Eclipse and (I think) the Subversive SVN connectors. I know NOTHING about the svn command line. Now I need to move my project to the trunk folder as I should have done from the beginning. I copied the MyProject folder to the trunk folder by copy/pasting in the SVN Repositories view in Eclipse and renamed the old folder, so now I have:
http://myserver/MyProject
/trunk
/MyProject
/src
/res
/...etc
/branches
/tags
/MyProject.old
/src
/res
/...etc
How do I get my project to start using /trunk/MyProject? Ever since I renamed /MyProject.old to /MyProject Eclipse cannot find the remote files when I sync. I tried changing the repository location from
http://myserver/MyProject
to
http://myserver/MyProject/trunk
but Eclipse warns that "The repository root URL refers to one of the resources configured as a structure node. Do you wish to normalize the URL by cutting it's last segment off?" If I say Yes I'm back in the same boat and if I say No I get nasty errors when I try to sync.
How do I get my code syncing to the new location? What am I doing wrong? I'd preferably like to keep my revision history and not start over again!
Thanks in advance,
Barry
The easiest thing to do if you're not familiar with the SVN command line is just to use TortoiseSVN then open up the Repo Browser: Windows Explorer -> File -> TortoiseSVN -> Repo Browser. Now drag and drop your folders or create new ones just like you would in Windows Explorer.
After you've done this, you'll also need to perform a "switch" on your working directory so it points to the new repository path: right-click -> TortoiseSVN -> switch.
Have a look at this thread:
How do you move a file in SVN?
I think the best option for you is to put everything back as it was before you copied the folder over. With svn, you have to be careful when you move/copy stuff around, because each folder contains a .svn folder. Inside that folder there are references to the actual repository, so when you modify the underlying file system, you bring the working copy in a very unstable and out of synch state.
If you don't have many local changes, you should probably do a fresh checkout. When you are done with that, you can follow the suggestion in the above thread to use svn commands to move folders/files around.

Import existing mult-rep CVS project folder into Eclipse

I wish to import an existing CVS managed project into Eclipse. I am currently trying to shift my work on to the Eclipse IDE. Some details about my project and environment below.
I'm working in Linux Ubuntu, the project folder is located on a mounted shared network drive, I have installed the "Eclipse CVS Client" plug-in for my version of Eclipse (Helios).
I've tried many ways for eclipse to use my existing folder as a project and recognize the CVS data in the CVS folders.
I have done the following options:
Created a new project, selected existing source, located my project folder and clicked OK to finish creating. In the end the CVS files weren't automatically read.
Did the same as above and after project creation I wen to the option "project menu->team->share project", it asks me to choose a repository and doesn't automatically find the CVS information in the subfolders.
I have set-up both repositories in my eclipse and can browse the repositories through the CVS browser.
My project directory layout is like this:
+-Project Folder (no CVS folder at this level)
+---Repo A folder
+-----CVS meta-info folder is INSIDE, along with all checked out files from Repo A
+
+---Repo B folder
+-----CVS meta-info folder is INSIDE, along with all checked out files from Repo B
+
+-(couple of random files, not in CVS)
Just right-click on your project and click Team -> Share Project. Eclipse will detect that the folder is already shared and resolve the connection with CVS.
Actually I cannot answer your question (I think it should work as you explaned) but I might have a workaround. Could you remove or rename the existing folder and do a fresh check out from your eclipse/CVS repository exploring view?