14

I'm working on a new project with a full ANT build. I use eclipse to write my code, and I would like others to be able to check out the project to have a full working eclipse workspace. I do not want to have specific user settings committed though.

What files and directories should I have in source control?

(I'd rather not just go grab a plugin - I prefer more control over what goes in the repository)

2
  • 1
    You can create a project in Eclipse from an ANT build file. Wouldn't that suffice?
    – Joey
    Feb 27, 2010 at 20:37
  • I honestly haven't tried that feature, but I can't imagine it would figure out my ant build well enough. Visual Studio and IntelliJ both have an XML file that controls the project structure - I want a similar setup for Eclipse.
    – Brian Henk
    Feb 27, 2010 at 20:45

1 Answer 1

9

We just put .project and .classpath in our repository, and that's sufficient to make it work "out of the box" for new developers. I'd like to have other stuff (run configurations come to mind), but haven't figured out how.

We use Subversion, so I put these files in a separate directory and defined svn:externals on that directory to point to the actual code, leaving it unpolluted by IDE-specific files.

Per request in the comments, here are the external that we use. Nothing complicated going on here:

Properties on 'svn://dev/trunk/IDEs/eclipse/runtime':
  svn:ignore
    bin
    .fbprefs
    cobertura.ser
    .settings

  svn:externals
    lib/bin svn://dev/trunk/lib/bin
    runtime svn://dev/trunk/runtime
1
  • 2
    Thank you. This continues to be my biggest frustration with Eclipse. It seems every other IDE does this better.
    – Brian Henk
    Feb 27, 2010 at 21:07

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.