Mindoo Blog - Cutting edge technologies - About Java, Lotus Notes and iPhone

  • XPages series #3: How to use version control systems in DDE

    Karsten Lehmann  15 July 2009 18:02:40
    Ok, in my previous posting of the XPages series, I said I'm going to talk about faces-config.xml next, but I just wanted to add a side note, because the topic "Version Control in Domino Designer on Eclipse" seems to be quite interesting for the developer community.

    As you might know, DDE 8.5 is not able to do proper version control for your Notes database, because the CVS/SVN plugins of the underlying Eclipse platform do not support a virtual filesystem (like DDE uses it).
    But there is a workaround, at least for the Java code that will contain our application backend logic.

    In my posting, I showed how to add a folder to the classpath of the NSF project. The Java content was stored in the "WebContent/WEB-INF/source" folder of the database project.

    Actually, there were two buttons to add content to the build path in the project properties dialog:

    Image:XPages series #3: How to use version control systems in DDE

    One is "Add Folder" to add a folder of the NSF project. Now we click on the other button "Link Source" instead:

    Image:XPages series #3: How to use version control systems in DDE

    You can use this "Link Source" feature of Eclipse to include external folders to your project. The external folders can then be part of any version control system you like.

    Simply press "Refresh" on that folder in DDE to let it catch any changes you make in external editors. DDE will also notice changes automatically when a Java file is already open in the editor.