Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to move java files in Egit between different projects?
How to move java files in Egit between different projects? [message #661087] Wed, 23 March 2011 05:21 Go to next message
murali t is currently offline murali tFriend
Messages: 2
Registered: March 2011
Junior Member
Hi there,

I have 2 projects in STS/Eclipse with EGit plugin

MyDomain

SRPApp
com.ebay.foo.package
Bar.java

I want to move Bar.java and foo.package from SRPApp project to MyDomain project with EGit - something I used to do on routine basis with Eclipse/ClearCase,svn before. But EGit only delete Bar.java from SRPApp proj without creating it in MyDomain proj.

Does anyone knows how to do this properly?

thanks

[Updated on: Thu, 31 March 2011 19:31]

Report message to a moderator

Re: How to move java files in Egit between different projects? [message #662710 is a reply to message #661087] Thu, 31 March 2011 15:34 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
> I want to move Bar.java and foo.package from SRPApp project to MyDomain
> project with EGit - something I used to do on routine basis with
> Eclipse/ClearCase,svn before. But EGit only delete Bar.java from SRPApp
> proj without creating it in SearchDomain proj.
>
> Does anyone knows how to do this properly?

How exactly do you move Bar.java? What do you mean by "move with EGit"?

What do you mean with "without creating it in SearchDomain proj"? Does it
not appear in the Package Explorer or is it not added to the Git repository?
Re: How to move java files in Egit between different projects? [message #662752 is a reply to message #662710] Thu, 31 March 2011 19:26 Go to previous messageGo to next message
murali t is currently offline murali tFriend
Messages: 2
Registered: March 2011
Junior Member
I'm using Eclipse Refactor to move Bar.java and foo.package to a different project (with in same Git repo). When I move from SRPDomain project , it removes correctly but doesn't add to MyDomain project. The work around I'm following is to use Git mv to move around files.

thanks

[Updated on: Thu, 31 March 2011 19:31]

Report message to a moderator

Re: How to move java files in Egit between different projects? [message #662786 is a reply to message #661087] Thu, 31 March 2011 21:40 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
On 2011-03-23 06.21, murali t wrote:
> Hi there,
>
> I have 2 projects in STS/Eclipse with EGit plugin
>
> MyDomain
>
> SRPApp
> com.ebay.foo.package
> Bar.java
>
> I want to move Bar.java and foo.package from SRPApp project to MyDomain
> project with EGit - something I used to do on routine basis with
> Eclipse/ClearCase,svn before. But EGit only delete Bar.java from SRPApp
> proj without creating it in SearchDomain proj.
> Does anyone knows how to do this properly?

That's a bug. There is is a bug relating to project rename. Thix one
is similar to that one.

https://bugs.eclipse.org/334112


-- robin
Previous Topic:Merge with --no-ff
Next Topic:EGit mylyn nightly md5 wrong.
Goto Forum:
  


Current Time: Tue Apr 16 19:03:47 GMT 2024

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

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

Back to the top