[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Problem using IDE-based move/rename refactor operation

From: Coles, Jim - C <Jim_Coles_at_labs.sbc.com>
Date: 2005-01-21 00:51:37 CET

Maybe my problem is WSAD 5.1.2. Are there any other WSAD users out
there?

Here are my latest findings:

1. Subclipse 0.9.3 is no help with refactoring (not to mention most
other subversion operations);
   its only a repos browser tool as far as I can tell.

2. I can't install Subclipse 0.9.5 because it requires Eclipse 3.0 and
WSAD 5.1.2 ships on Eclipse 2.1.3.
   Does Subclipse 0.9.5 have better integration to intercept/collaborate
with Eclipse refactoring? If so,
   I might try plain Eclipse with no WSAD.

3. (not direct subversion issue) WSAD 5.1.2 is giving me a null pointer
error when I try to
   refactor->rename a Java package.

All of this implies that for each rename/move I want to do, I have to
choose between these options:

1. Do WSAD refactor first. Then do subversion and working copy
gymnastics to get subversion
   back in sync.

or,

2. Do svn move/rename first. Then do old-fashioned text file
search/replace to get Java
   code and various .xml file references back in sync.

</whining>,
-jim coles

-----Original Message-----
From: jim.mochel@ascentialsoftware.com
[mailto:jim.mochel@ascentialsoftware.com]
Sent: Thursday, January 20, 2005 11:02 AM
To: Coles, Jim - C; users@subversion.tigris.org
Subject: RE: Problem using IDE-based move/rename refactor operation

My experience is that you do have to use the plugins to have everything
tracked correctly. Especially if you copy or delete incorrectly from the
IDE you can put the working copy into an invalid state that takes some
work to recover from.

Jim

-----Original Message-----
From: Coles, Jim - C [mailto:Jim_Coles@labs.sbc.com]
Sent: Thursday, January 20, 2005 11:15 AM
To: users@subversion.tigris.org
Subject: Problem using IDE-based move/rename refactor operation

Hello all,
   I am wanting to use my Java IDE (websphere) to do my Java class and
package moving and renaming. Of course, I want to take advantage of the
IDE's refactoring to avoid broken references, etc.. The problem is, I
can not then easily get my Subversion directories and file names back in
sync with my local files system counterparts. Here's what I'm doing:

1. Have Java elements like this:
[local] ./com.one.two.Class1.java

2. Add corresponding directories and file to Subversion ==>
[svn ] ./com.one.two.Class1.java

Everything is in sync at this point.

3. Use IDE-based refactoring to move Class1 to another package ==>
[local] ./com.one.two.[empty]
[local] ./com.one.another.Class1.java
[svn ] ./com.one.two.Class1.java

Now, of course, Subversion is all out of whack and has no way of knowing
that [local]./com.one.another.Class1.java corresponds to
[svn]./com.one.two.Class1.java.

What are my options?

Do I HAVE to use a subversion plugin for my IDE so that it can
coordinate local and svn move/renames with the IDEs refactoring logic?

Or, do I have to do an 'svn move/rename' first and just do without
move/rename refactoring within my IDE?

That's it,

Jim Coles

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 21 00:54:03 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.