I have an existing Java project in Eclipse:
MyProject/
src/
... all main sources
test/
... all test sources
build.xml
... lots of other stuff
I now want to add this project (commit all of it) to the empty trunk/
of a new SVN repo:
https://svn.example.com/MyProject/
trunk/
(Empty)
So that, after the commit, the repo now looks like:
https://svn.example.com/MyProject/
trunk/
src/
... all main sources
test/
... all test sources
build.xml
... lots of other stuff
I installed the Subclipse plugin.
In Package Explorer, I:
- Right-click
MyProject/
Team >> Share Project >> SVN >> https://svn.example.com/MyProject
- Use specified folder name of "trunk" so that the URL is now
https://svn.example.com/MyProject/trunk
- Click "Finish"
When I do this, instead of committing all my source code (contained in MyProject
) to the trunk/
in the repo, it overwrites (thus a checkout) MyProject/
with an empty directory!
Thus, Share Project seems to be for checking out code from a repo, not committing new code into a repo for the first time!
How do I accomplish such an initial commit with the Subclipse plugin and/or Eclipse's Team features?