简体   繁体   中英

Creating an SVN repository from an eclipse java project

I'm creating a project under eclipse that is to be shared by several developers. The instructions I found for creating an svn repository said to:

  1. svnadmin create /var/svn/draw
  2. create a directory with my project on the server, make directories under it including trunk
  3. put all code under trunk.

I copy in all the code, which is in src/ as usual for eclipse.

The problem is, when I check it out into eclipse, it's got directory trunk as well:

trunk/src/...

This means I have to change the project definitions. First question: Can I create a project, and administer it in subversion directly from eclipse?

Second: If not, how can I create the project in subversion so that its directory structure and eclipse project's are the same? Do I just have to initially create a trunk directory? Is there anything else I have to do?

What is the overall folder structure here? Are you just putting the code files in ./trunk/src/ and keeping other files related to the project outside of ./trunk/? This may be a silly question, I'm just trying to get a feel for your SVN experience here. The eclipse project shouldn't be aware of the ./trunk/ folder if everything in the project is relative to its own root path and ./trunk/ is that root path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM