开发者

How to connect to SVN server in Java and more?

开发者 https://www.devze.com 2022-12-20 15:02 出处:网络
I h开发者_Go百科ave a project where I have to pull data or code from SVN and create a sequence/class/UML diagram based on code/data retrieved from SVN.

I h开发者_Go百科ave a project where I have to pull data or code from SVN and create a sequence/class/UML diagram based on code/data retrieved from SVN.

My questions are:

  1. How to connect to SVN server from java?
  2. Is there any java libraries that can take a class method and generate a sequence diagram?
  3. Is there any java library that can generate a UML 2.0 complaint diagram from class file?

Any pointers will be much appreciated.


To answer your SVN Java-API question: SVNKit is really handy.


If I understand well the need is to reverse engineer sequence and class diagram from existing code which is currently shared by the team on SVN.

You can not do reverse programmatically using a method because this is a lot more complex than just a method. You certainly have hundred of methods or more called for a basic reverse engineering option. The step to reverse engineer a Java code into an UML diagram is to: First map your code to a UML model: You can do it but just a drag and drop or by reversing the full project and then creating UML views from your model

Once the UML project has been created you can share it directly on SVN with the other users if they use Eclipse, if they don't use Eclipse then you can export image of your sequence diagram using the image export option and copy this image inside your team project for documentation purposes.


http://sourceforge.net/projects/svn4j/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号