Eclipse P2 update

3,108 views

Published on

http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial_36/

Published in: Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,108
On SlideShare
0
From Embeds
0
Number of Embeds
1,283
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Eclipse P2 update

  1. 1. Eclipse 3.6ECLIPSE P2 UPDATE 조현종(v0.1, 11/11/08) http://cafe.naver.com/eclipseplugin http://hangumkj.blogspot.com/ hangum@gmail.com
  2. 2. 목 차 Making the application updateable Feature / Product setup 배포 참고자료이 PPT는http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial_36/를 요약 하였습니다.
  3. 3. Making the application updateable Creating the example project  Create a new plug-in project com.example.mail Download org.eclipselabs.p2.rcpupdate File -> Import -> Existing Projects Create a new menu <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="menu:help"> <command commandId="org.eclipselabs.p2.rcpupdate.install" style="push"/> <command commandId="org.eclipselabs.p2.rcpupdate.update" style="push"/> </menuContribution> </extension> Add a package import to org.eclipselabs.p2.rcpupdate.utils
  4. 4. Making the application updateable Application startup by calling P2Util public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor { // ... @Override public void preStartup() { P2Util.checkForUpdates(); } }
  5. 5. Feature / Product setup P2 will only install features.  Make a feature project.  com.example.mail.app  Referenced a main plugins  com.example.mail Add org.eclipse.rcp and org.eclipselabs.p2.rcpupdate to the list of included features
  6. 6. Feature / Product setup Create a new product  mail.product  File -> New -> Plug-in Development -> Product configuration Open a mail.product  Check version number like ‘1.0.0.qualifier’
  7. 7. Feature / Product setup Add the feature com.example.mail.app  Product dependencies and delete the version number (Properties…) Create a p2.inf file instructions.configure= addRepository(type:0,location:file${#58}/c:/export/repository/); addRepository(type:1,location:file${#58}/c:/export/repository/); instructions.configure= addRepository(type:0,location:http${#58}//localhost:1234/repository/); addRepository(type:1,location:http${#58}//localhost:1234/repository/); * plugin.xml에 Build tab에 p2.inf를 선택합니다.
  8. 8. Feature / Product setup Launch the product from the product configuration Check that the application  여기서는 단지 메뉴가 정상적으로 있는 지만 확인합니다. (실제 동작하지 않습니다)
  9. 9. Feature / Product setup Export the product  File -> Export -> eclipse product  Check Generate metadata repository:  배포결과 eclipse : product repository : update 모듈
  10. 10. 배포 make tomcat project
  11. 11. 참고 자료 이 PT의 자료는 http://www.ralfebert.de/blog/eclipsercp/p2_u pdates_tutorial_36/ 를 요약한 것입니다.

×