How do you handle different Java IDEs and svn?

前端 未结 7 1802
天命终不由人
天命终不由人 2020-12-16 22:55

How do you ensure, that you can checkout the code into Eclipse or NetBeans and work there with it?

Edit: If you not checking in ide-related files, you have to reconf

7条回答
  •  暖寄归人
    2020-12-16 23:21

    Here's what i do:

    1. Only maintain in source control your ant build script and associated classpath. Classpath could either be explicit in the ant script, a property file or managed by ivy.
    2. write an ant target to generate the Eclipse .classpath file from the ant classpath
    3. Netbeans will use your build script and classpath, just configure it to do so through a free form project.

    This way you get IDE independent build scripts and happy developers :)

    There's a blog on netbeans site on how to do 3. but i can't find it right now. I've put some notes on how to do the above on my site - link text (quick and ugly though, sorry)

    Note that if you're using Ivy (a good idea) and eclipse you might be tempted to use the eclipse ivy plugin. I've used it and found it to be horribly buggy and unreliable. Better to use 2. above.

提交回复
热议问题