Refactoring question

2009-11-22 Thread neo anderson

I use maven 2.0.9, jdk 1.6.0_10 to build my project. 

Now I encounter a dilemma. I have source code e.g. example/ioc/MyIoc.java,
example/ioc/tapestry5/MyIocWrapper.java and related Test files. They are
located in different folders at the beginning. 

Now I want to reorganize/ refactor the source code. So the structure may
become example/ioc/MyIoc.java, example/ioc/MyIocWrapper.java. However, there
are many classes which has similar situation. That means they may just be
located in different folders. 

As I understand, in eclipse a developer can simply right-click and choose
refactoring after modifying the source, then related source code in other
classes would be changed as well. So I would like to know is there any
chance this can be achieve using maven plugin? Or generally people who use
maven (but don't use eclipse) would recommend the best approach?

I appreciate any suggestion.

Thank you very much.
-- 
View this message in context: 
http://old.nabble.com/Refactoring-question-tp26464173p26464173.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Refactoring question

2009-11-22 Thread Stephen Connolly
I find intellij has great refactoring support... and there is now a  
free (as in apache licensed) version available


in intellij you just go file | open project, point it at your pom.xml  
and it will open your project with everything just configured. then  
just drag and drop your java sources into the packages you want  
committing as you go and you're done


(netbeans and eclipse have similar support, but in my experience  
intellij is best for refactoring)


-Stephen

Sent from my [rhymes with tryPod] ;-)

On 22 Nov 2009, at 13:41, neo anderson javadeveloper...@yahoo.co.uk  
wrote:




I use maven 2.0.9, jdk 1.6.0_10 to build my project.

Now I encounter a dilemma. I have source code e.g. example/ioc/ 
MyIoc.java,
example/ioc/tapestry5/MyIocWrapper.java and related Test files. They  
are

located in different folders at the beginning.

Now I want to reorganize/ refactor the source code. So the structure  
may
become example/ioc/MyIoc.java, example/ioc/MyIocWrapper.java.  
However, there
are many classes which has similar situation. That means they may  
just be

located in different folders.

As I understand, in eclipse a developer can simply right-click and  
choose
refactoring after modifying the source, then related source code in  
other

classes would be changed as well. So I would like to know is there any
chance this can be achieve using maven plugin? Or generally people  
who use

maven (but don't use eclipse) would recommend the best approach?

I appreciate any suggestion.

Thank you very much.
--
View this message in context: 
http://old.nabble.com/Refactoring-question-tp26464173p26464173.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org