Offline with Eclipse
Dec. 30th, 2010 07:41 pmWoot! Success....ish!
It's not a flawless victory but it's 90% of the way there and is both much easier and much quicker than all the other solutions I've tried and gets me all of the code sense and hierarchy views without any of the VPN lag. Plus I can work offline.
I can't compile this code on my local host of course, otherwise I'd have just done a mercurial checkout to it and been done.
So... Yay, I think. :)
Open Eclipse
Create a New Project. ( just a blank project)
On the command line, go to where your project was created and substitute in your names for the following:
cd ECLIPSE_PROJECT_DIR
#Works as long as you don't edit the same file in both places without syncing.
#Trailing slashes are important!
rsync -druavz --exclude ".hg*" user@remote.host.com:/path/to/remote/repo/ NEWPROJECT
rsync -dravz --exclude ".cproject" NEWPROJECT/ user@remote.host.com:/path/to/remote/repo
Go back to Eclipse and do File|New|Makefile Project with Existing Code. Select your directory and done.
Rerun rsync script to sync changes.
It's not a flawless victory but it's 90% of the way there and is both much easier and much quicker than all the other solutions I've tried and gets me all of the code sense and hierarchy views without any of the VPN lag. Plus I can work offline.
I can't compile this code on my local host of course, otherwise I'd have just done a mercurial checkout to it and been done.
So... Yay, I think. :)