新的eclipse 和已安裝的flex的佈署

If you want to see how I got on read on…

Update

Thanks to Sean Corfield there is a quicker way to update a new installation. All you need to dois add the Flex Builder Plugin update site that is located in your Flex Builderplugin installation folder. For example mine is /Applications/Adobe FlexBuilder 3 Plug-in/com.adobe.flexbuilder.update.site.

I had seen this folder in the directory, but assumed it was used to updatethe plugin not the eclipse installation that was utilizing it. Doh! :p Thanksagain Sean :)

Feel free to read on though if you want to know how to do it manually :p

The first thing you’ll have probably noticed is that when you install FlexBuilder as a plugin of eclipse, is that a new .jar file (startup_fb.jar)is placed within the root of your eclipse folder. Personally I don’t reallyhave much idea what this .jar does, but given the fact it’s called startup_fbit’s pretty likely it’s used to start the Flex Builder initialization firsttime or every time eclipse is run.

The next addition that Flex Builder makes to your eclipse install is thatit places a file that links to the Flex Builder plugin installation folder in afolder calledlinks. The file itself is called com.adobe.flexbuilder.feature.core.osx.linkon OS X andcom.adobe.flexbuilder.feature.core.link on Windows,but it is just a plain text file – as it happens mine points to/Applications/AdobeFlex Builder 3 Plug-in (as I’m on a Mac).

Now here is where the digging comes in. If you just copy these two filesin to your fresh eclipse install nothing will happen. Not a sausage, nada. Sofirst call of action was to look through the various folders in the eclipseinstallation to see if there are any com.adobe.xxx packages within them.Surprisingly there aren’t.

So after a bit of logical thinking I started to hunt through the mainconfiguration file for eclipse. It was here that I finally got a break-thru. Itappears that there is a folder calledorg.eclipse.equinox.simpleconfiguratorthat contains a file calledbundle.info and it is in here that Ifinally found what I was looking for. As you can see from the image below, thisfile holds the bundle references to amongst other things all of the FlexBuilder files.

With this final pieces of the jigsaw in place I was finally able toreconnect Flex Builder to a fresh installation of eclipse, and if you want to beable to do it as well here are the actual steps.

·        Install a freshcopy of eclipse, but don’t delete the old version yet. (I called mineeclipse-new, you can rename it at the end)

·        Copy start_fb.jarto the root of your new eclipse installation

·        Copy the FlexBuilder link file com.adobe.flexbuilder.feature.core.osx.link if you’reon OS X, orcom.adobe.flexbuilder.feature.core.link if you’re onWindows, to the ‘links’ folder in the root of your new eclipse installation (Ifyou are using Ganymede – 3.4 or greater you’ll need to create this folder)

·        Open up the bundles.infofile located in you old eclipseinstallation/configuration/org.eclipse.equinox.simpleconfiguratorin a text editor

·        Copy all of theFlex Builder related entries – use the file reference as a guide as not all ofthe packages have Flex in the name

·        Now open up thesame file, but in your new installation and paste those entries at the top andsave it

·        Start up your newclean eclipse install and bask in your 1337 s1<i||z :p

·        If all went to plan you can now close eclipse, delete the old version and rename the new one –job done.

That’s pretty much it. If this seems a bit overly complex, don’t worry –I’m putting the final touches to a screencast that you can use to walk youthrough this process should you ever need to do it :)

 

說明:

1,安裝一個新的eclipse.

2,把舊的eclipse下的start_fb.jar考到新eclipse下

3,考eclipse下的flex link連接

4,打開舊 eclipse下的installation/configuration/org.eclipse.equinox.simpleconfiguratorin 下的bundles.info

5,考flex相關的對象到新的去

6,OK了。

另外,網上也有中文篇:(不太一樣)

綠化Flex Builder 這是重點.
1. 把D:\Program Files\eclipse\Flex Builder\com.adobe.flexbuilder.update.site\下的 plugins、features、site.xml
複製到 D:\Program Files\eclipse\ (如果你的eclipse目錄已經有一個site.xml 你只要把兩個文件的feature節內容合併就好了.)

2. 把D:\Program Files\eclipse\Flex Builder\eclipse\下的 plugins、features(如果有的話,這是Eclipse的一些更新)
複製到 D:\Program Files\eclipse\

3. 把D:\Program Files\eclipse\Flex Builder\sdks 複製到D:\Program Files\eclipse\

OK,Flex Builder安裝完成,接下來就是啓動Elipse

 

另外,在新機器考原有的項目,flex ,eclipse的路徑要保持一致,如果要重新安裝flex ,會提示有失敗,特別要注意bundles.info下的文件,裏面的路徑還有以前的路徑,要自己修改過來才行。

 

 

發佈了97 篇原創文章 · 獲贊 3 · 訪問量 35萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章