Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Project with multiple verisons of same source file
Project with multiple verisons of same source file [message #225165] Sun, 05 March 2006 19:16 Go to next message
Eclipse UserFriend
Wondering if there's a different way to solve the following?

I have a project with three distinct sourcepaths:

src
src/test // unit tests that depend on src classes
src/perf // load tests that depend on src classes

I have command line ANT builds (team standard) and in-Eclipse builds
(debugging) that output to distinct places but are essengtially equivalent.
So far so good.

I have a new requirement to *replace* some classes with different versions
in the src/perf tree. In ANT I do this by building three jars and
optionally prepending the perf jar to the classpath. If I attempt to
define an Eclipse sourcepath that contains duplicate verisons of class X
it (understandably) complains. Is there a smart way to do this and still
use a single Eclips e project? Is there a way to use a hotykey to toggle
on/off a specific builder?
Is there even a way to use a hotkey to toggle on or off the automatic
builds?

Peter
Re: Project with multiple verisons of same source file [message #225356 is a reply to message #225165] Mon, 06 March 2006 15:45 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Peter Booth" <pbooth@nocoincidences.com> wrote in message
news:e53515b0ac80e41044958712de7d1c3b$1@www.eclipse.org...
> [...]
> I have a new requirement to *replace* some classes with different versions
> in the src/perf tree. In ANT I do this by building three jars and
> optionally prepending the perf jar to the classpath. If I attempt to
> define an Eclipse sourcepath that contains duplicate verisons of class X
> it (understandably) complains. Is there a smart way to do this and still
> use a single Eclips e project? Is there a way to use a hotykey to toggle
> on/off a specific builder?
> Is there even a way to use a hotkey to toggle on or off the automatic
> builds?


Consider using a classpath variable to specify a particular directory
location, in much the same way you might use an environment variable within
an ant script.

I don't know how you'd get it to be redefined with a hotkey, though.
Previous Topic:3.2M4: Can't attach source code for JARs in plugin dependencies
Next Topic:How to handle duplicate events in IResourceChangeListener/IElementChangedListener/RefactoringPartici
Goto Forum:
  


Current Time: Mon Jul 14 00:10:37 EDT 2025

Powered by FUDForum. Page generated in 0.05077 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top