Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Testing new versions of a class(New versions of a class)
Testing new versions of a class [message #928820] Mon, 01 October 2012 01:52
Richard Mittleman is currently offline Richard MittlemanFriend
Messages: 14
Registered: April 2010
Junior Member
I posted this once but I can't find it so I am posting it again.

Because our version control is not up yet I a trying to come up with an interim method of having both a current version and a new version of a class This is what I have come up with so far but I am sure there is a better way using Eclipse.

I have a Project named ProjectA .
ProjectA contains 3 packages: mainPackage, subordinatePackage, and newVersionPackage.

The package mainPackage contains the main class named mainClass which calls the named class ClassA.

The package subordinatePackage contains the current version of the class ClassA.

The package newVersionPackage contains the new version of the class ClassA.

If I want to execute the project using the current version of the class ClassA I just run the project ProjectA

If I want to execute the project using the new version of the class ClassA I go into the mainClass of mainPackage and change the import that points to ClassA to

import newVersionPackage.ClassA;

I then run the project ProjectA

Is there some way that Eclipse could designate the import statement to use? Or is there an easier way to solve the problem?

Thank you,
Previous Topic:how to design complete struts application using eclipse
Next Topic:resolved: Is there something new with printf()/
Goto Forum:

Current Time: Wed Jun 20 08:05:26 GMT 2018

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

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

Back to the top