[ajug-members] favorite IDE

Jason Day jasonday at worldnet.att.net
Thu Aug 10 15:22:16 EDT 2006


On Thu, Aug 10, 2006 at 01:43:37PM -0400, Howard Kapustein wrote:
> >We add our .project and .classpath files to version control.
> I've got 10 people working on a project, and not everyone has the same
> exact hard drive layout. Tell me how I can treat .dotfiles as common
> version control artifacts w/o including hardcoded paths.

Use Classpath Variables.  In eclipse, select the Window->Preferences
menu item, then expand Java->Build Path and click Classpath Variables.
Click the New button, enter HIBERNATE (or whatever) for the name and the
appropriate path for the workstation.  Do this for every path that your
project needs to reference.

In your project, make sure the build path uses only Variables and
Libraries, no hard-coded paths.  Then when another developer checks out
the project everything just works, as long as you've configured all the
variables.  If you haven't, it will be obvious in the build path
settings and easy to fix.

> >You can also export/import all of your Eclipse preferences
> >which is nice.
> Yes.
> But it'd be nicer if I could have stylesheet-esque layered definitions.

That's a good idea.  I haven't seen this feature anywhere else, but I do
like the sound of it.

Jason
-- 
Jason Day                                       jasonday at
http://jasonday.home.att.net                    worldnet dot att dot net
 
"Of course I'm paranoid, everyone is trying to kill me."
    -- Weyoun-6, Star Trek: Deep Space 9



More information about the ajug-members mailing list