Wink Saville’s Blog

January 14, 2008

Eclipse – settings and moving workspaces

Filed under: Eclipse,programming — wink @ 11:08 am

I checkout ws-msgcomp onto my laptop and wanted to move the settings from my main machine to the laptop. I found that Eclipse really doesn’t like to do that and when you do things still need tweaking.

Here was a link on what someone did for moving the settings so I created a tar script to save the settings:

tar -cjvf $1.tbz .metadata/.plugins/org.eclipse.core.runtime .metadata/.plugins/org.eclipse.ui.workbench

I saved this as backup-eclipse-settings.sh in my local bin file and executed:

backup-eclipse-setting.sh settings

creating settings.tbz I scp that to the laptop and untared it. then executed eclipse. First problem was I had my old files but no projects were imported. I imported the projects but they wouldn’t compile because “aapt” couldn’t be found even though it was there in the path it said it expected it to be. Turns out I needed to reset the android SDK path; In the Eclipse menu “Windows -> Preferences -> Android -> SDK Location:” I used Browse to reset it, even though it was correct.

Next I had to goto each of the projects and “Browse” to each of the imported libraries by selecting the Project then using the Eclipse menu; “Project -> Properties -> Java Build Path -> Libraries” and then select each of the jar’s Editing the location browsing to the actual location.

So it seems that even though the textual path is the same that isn’t enough, its almost seems it keeps the inode. Bottom line Eclipse doen’t handle paths well.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress