changing a project's location w/o moving it [message #101844] |
Wed, 14 September 2005 23:20 |
Eclipse User |
|
|
|
Originally posted by: brettREMOVE.rockREMOVEnut.com
howdy,
i need to change my project to point to a different location
i tried editing the .location file (binary) and, as expected, eclipse does
not like this
using the "move" option, moves the files (which i do not want to do)
i know this is kinda screwy
i searched the posts and did not find anything
tia,
brett
ps. bonus question: anybody know whey this file is binary? i'd expect
xml for everything.
|
|
|
|
Re: changing a project's location w/o moving it [message #102107 is a reply to message #101897] |
Thu, 15 September 2005 14:51 |
Eclipse User |
|
|
|
Originally posted by: brettREMOVE.rockREMOVEnut.com
what i want to do is copy my workspace and my build directories to have a
new working copy of the code (this is to "seed" a workspace for work on a
code branch)
setting up a workspace at my company is kinda a pain - our SCM plugins are
painful - thought i'd try this before i spend hours doing it the "right"
way
i can search/replace the path in all but the .location file
what i want to do is modify a project's location (and i don't want to do
it by moving the files via the "move" popup command)
thanks,
brett
|
|
|
|
Re: changing a project's location w/o moving it [message #102249 is a reply to message #102132] |
Thu, 15 September 2005 18:30 |
Eclipse User |
|
|
|
Originally posted by: brettREMOVE.rockREMOVEnut.com
my source is outside my workspace - this might be the difference between
our environments - maybe this is unusual maybe this is why i couldn't find
posts on this topic
anyway, since there doesn't seem to be an "official" way to do this...
for future readers...
open .location w/ hex editor - edit the path - update the 2 bytes before
the path string to be the new length of the path
so far this seems to be working
if i don't post a reply to this you know i haven't had any issues w/ it
thanks,
brett
|
|
|
|
Re: changing a project's location w/o moving it [message #102463 is a reply to message #102249] |
Fri, 16 September 2005 14:26 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
brett wrote:
> my source is outside my workspace - this might be the difference between
> our environments - maybe this is unusual maybe this is why i couldn't
> find posts on this topic
>
> anyway, since there doesn't seem to be an "official" way to do this...
>
> for future readers...
>
> open .location w/ hex editor - edit the path - update the 2 bytes before
> the path string to be the new length of the path
>
> so far this seems to be working
NO!
For future readers this it DEFINITELY NOT what you want to do. As
someone earlier in the thread pointed out, the .location file is an
internal piece of metadata that is not intended to be user-modifiable.
Moving projects and workspaces around is not that difficult if you take
the time to really understand how Eclipse manages them and expects you
to manage them.
There is always a better way, just ask (and give enough detail so others
can help).
Eric
|
|
|
|
Re: changing a project's location w/o moving it [message #1713062 is a reply to message #1713056] |
Fri, 30 October 2015 13:56 |
|
On 10/30/2015 06:46 AM, Srimukhee sri wrote:
> Can someone please tell how to get the path of a Project file thats
> outside the workspace?
> I have been trying different solutions but am unable to get an answer.
What happens when you right-click on the project or a file in the
project and choose Properties?
|
|
|
Powered by
FUDForum. Page generated in 0.06224 seconds