新的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万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章