p2

Eclipse does not download latest jar of the same version from the target platform

南笙酒味 提交于 2019-12-05 10:48:59
I have a strange problem in our Eclipse IDE (Indigo V3.7.2). We use a target platform hosted on a server which is a p2 repository built using the b3 aggregation process. We get certain components and features from a different team. Every time they deliver the plugins, the version numbers remain the same (e.g myjar_v1.0.0.jar) (of-course the size is different). We update these plugins on the remote server. After this update, the problem is that, if I use an existing workspace, I see compilation issues in my code because of the latest jar not being downloaded from the target platform. Does

Eclipse p2 : Difference between category.xml and site.xml

孤者浪人 提交于 2019-12-05 02:19:26
p2 repository creation ant tasks like eclipse.publish.featuresAndBundles seem to take a site.xml or category.xml file which specifies the category information. I see that the contents of site.xml and category.xml that eclipse generates are exactly the same right down to the tags. So what is the difference between the two? Edit - To be clear : What additions/subtractions are present in category.xml that differentiate it from a site.xml apart from the filenames? The main difference between the to that the site.xml provides information where the update site and other repo information can be

Eclipse p2 director application without updates

陌路散爱 提交于 2019-12-04 19:58:14
I'm installing artefacts through the p2 director application from a command line and all of their repositories will get added to the Software Updates. Is there a way not the get the repositories added, or remove/disable them afterwards? The p2 director stores the locations of the repositories in the two files org.eclipse.equinox.p2.artifact.repository.prefs org.eclipse.equinox.p2.metadata.repository.prefs in each of the following two directories: p2/org.eclipse.equinox.p2.engine/.settings and p2/org.eclipse.equinox.p2.engine/profileRegistry/<profileName>.profile/.data/.settings Restoring these

How can I use Eclipse p2 repositories from Maven?

烈酒焚心 提交于 2019-12-04 17:07:38
I am trying to create an Eclipse based setup where Eclipse projects are Maven based. So it should all work with Maven whether or not Eclipse is used. I have a dependencies on various Eclipse project libraries, with more to be added. I want to use p2 repositories, and I've managed to pull an Eclipse EMF library and turn it into a jar following this example: Use dependencies from Eclipse p2 repository in a regular Maven build? The problem is, I could not find a way of streamlining the process. I'd need to manually install the re-packaged dependency from the question given above to local Maven

Eclipse p2 alternative for custom install handlers

强颜欢笑 提交于 2019-12-04 16:45:35
Before p2, one could write a custom install handler with a feature that was executed to do any 'custom' task during installation. I see that with p2 the custom install handler is no longer supported. I keep hearing about 'custom touchpoints' being the replacement for that. However I cant find any concrete example/documentation for it. Can anyone tell me how to get the functionality of custom install handlers with the p2 update manager. Edit: A description of what I want to do - I need to edit the eclipse.ini file and set the -Xmx property to a value based on whether we are running inside a 64

P2 repositories aggregator

时光总嘲笑我的痴心妄想 提交于 2019-12-04 16:14:35
we have several internal p2 repositories. Each repository has many versions of different features. We need to have an external update site for our clients. We would like to aggregate only specific versions of specific features. Would is a good way/tool to "aggregate" them? For example we have a p2 repository repo1 with feature feature1 with versions 1.0.0 , 2.0.0 , 3.0.0 and another p2 repository repo2 with feature feature2 with versions 1.0.0 and 2.0.0 . We would like to aggregate versions 1.0.0 and 3.0.0 of feature1 and version 2.0.0 of feature2 : feature1 1.0.0 3.0.0 feature2 2.0.0

第28课.友元的尴尬能力

断了今生、忘了曾经 提交于 2019-12-04 11:23:48
1.友元的概念 a.友元是c++中的一种关系 b.友元关系发生在 函数与类 之间或者 类与类 之间 c.友元关系是单项的,不能传递(充分不必要) 2.友元的用法 a.在类中以friend关键字声明友元 b.类的友元可以是其它类或具体函数 c.友元不是类的一部分(函数,是外界的。类就不用说了。) d.友元不受类中访问级别的限制(private;public) e.友元可以访问具体类的所有成员 #include <stdio.h> class Point { double x; double y; friend void func(Point &p); }; void func(Point &p) { } 3.友元的的尴尬 a.友元是为了兼顾c预言的高效性而诞生的 b.友元直接破坏了面向对象的封装性 c.友元在时间产品中的搞笑是得不偿失的 d.友元在现代软件工程中已经渐渐被遗弃 4.注意事项: === a.友元关系不具备传递性 b.友元可以是其它类的成员函数 c.类的友元可以是某个完整的类(友元类的所有成员函数都是另一个类的友元函数,分别于类友元, 友元关系不能被继承 ) eg: 函数与类之间的友元: #include <stdio.h> #include <math.h> class Point { double x; double y; public: Point(double x

What is a p2 repository?

拜拜、爱过 提交于 2019-12-04 04:04:10
I'm working on a project now for a few months where we use "p2-repositories". I know that I get my dependencies from them. But now I want do dive deeper into the subject and I wonder what exactly is a p2-repository - the definition. I think it has something to do with OSGi and with Nexus. But where does it come from? Am I bound to Nexus when I use p2 repositories? Or is this the common standard from OSGi? Or Eclipse/Maven/Tycho? Why do I need p2-repositories, when I can have Maven? Or why can't I use Maven? P2 repositories are very common in the eclipse ecosystem. They combine the artifacts

Tool for downloading eclipse plugins from update sites

核能气质少年 提交于 2019-12-04 02:51:16
I need to install an eclipse plugin to a machine not connected to the Internet and I cannot find a dist to use for a local install. Is there a tool for downloading a plugin from an update site and create a local installation archive (or a local update site)? Rumors says you can do this with eclipse, but I cant find any info on how to do it. You can use P2 mirror tool (or P2 mirror in Galileo documentation ) to mirror remote metadata and artifacts repository. Here is sample command to mirror Galileo artifacts repository locally: eclipse\eclipsec.exe -nosplash -verbose -application org.eclipse

操作系统-课后自测

送分小仙女□ 提交于 2019-12-03 10:41:35
一、设有5个进程P1、P2、P3、P4和P5,它们到达时间和要求服务时间如下表(单位为ms),请按时间片轮转调度算法完成,时间片大小为3。 Process: P1 P2 P3 P4 P5 到达相对时刻: 0 3 5 9 13 执行或服务时间: 7 6 10 8 2 (1)写出进程的实际调度序列:____,____,____,____,____,____,____,____,____,____,____,____,____。 (2)计算平均带权周转时间(保留两位小数)____________。 解答: 甘特图为 0 3 6 9 12 15 18 19 22 24 27 30 32 33 P1 P2 P1 P3 P2 P4 P1 P3 P5 P4 P3 P4 P3 (1)进程的实际调度序列为: P1 P2 P1 P3 P2 P4 P1 P3 P5 P4 P3 P4 P3 。 (2)平均带权周转时间 = [ ( 19 - 0 )/7 + ( 15 - 3 )/6 + ( 33 - 5 )/10 + ( 32 - 9 )/8 + ( 24 - 13 )/2 ]/5 = ( 19/7 + 12/6 + 28/10 + 23/8 + 11/2 )/5 = 15.88 / 5 = 3.176 ≈ 3.18 注:周转时间 = 进程完成时间 - 进程相对到达时间 带权周转时间 = 周转时间 /