p2

tycho to publish p2 site with a history of features for installation

心不动则不痛 提交于 2020-01-26 04:11:12
问题 I would like to ask about how to preserve the history of available plugins for download with tycho. Here's the scenario: I have a few versions of a feature (feature.1.0.0, feature.2.0.0, etc) being built with Eclipse "Build Site" feature. The metadata, content.jar and artifacts.jar were created from Eclipse, by reading the site.xml. Now I have maven tycho to automate the p2 repository creation. I saw how tycho generate the p2 repo with category.xml. But I don't understand how to include the

Uninstalling an (obsolete) Eclipse fragment during upgrade

北慕城南 提交于 2020-01-24 21:10:07
问题 I have a fragment which has been made obsolete, and I would like to create an update which uninstalls the fragment. I guessed that the right way would be to treat the fragment as a bundle, so I added the following to my p2.inf of the plugin containing installer actions: instructions.install = \ uninstallBundle(bundle:com.iar.cdt.arm.debugger.drivers.win32); \ uninstallBundle(bundle:com.iar.ide.debugger.kernel.win32) instructions.install.import \ org.eclipse.equinox.p2.touchpoint.eclipse

Intersecting Lines POJ - 1269

人走茶凉 提交于 2020-01-13 01:56:38
Intersecting Lines 题目链接: https://vjudge.net/problem/POJ-1269 题目: 题意:判断给出的两条线是否相等平行还是相交,若相交求出交点坐标。。水题坑点就是提交G++WA,而提交C++A了,, 1 // 2 // Created by HJYL on 2020/1/13. 3 // 5 #include<iostream> 6 #include<cstring> 7 #include<cstdio> 8 #include<cmath> 9 #define eps 1e-6 10 using namespace std; 11 struct Point 12 { 13 double x,y; 14 }; 15 struct Line 16 { 17 double a,b,c,angle; 18 Point p1,p2; 19 Line(Point s,Point e) 20 { 21 a=s.y-e.y; 22 b=e.x-s.x; 23 c=s.x*e.y-e.x*s.y; 24 angle=atan2(e.y-s.y,e.x-s.x); 25 p1=s;p2=e; 26 } 27 Line(){} 28 }; 29 Point sub(Point a,Point b) 30 { 31 Point t; 32 t.x=a.x-b

leet75:颜色分类

谁说我不能喝 提交于 2020-01-12 02:17:13
本问题被称为 荷兰国旗问题 ,最初由 Edsger W. Dijkstra提出。 public static void sortColors ( int [ ] nums ) { // 对于所有 idx < i : nums[idx < i] = 0 // j是当前考虑元素的下标 int p0 = 0 , curr = 0 ; // 对于所有 idx > k : nums[idx > k] = 2 int p2 = nums . length - 1 ; int tmp ; while ( curr <= p2 ) { if ( nums [ curr ] == 0 ) { // 交换第 p0个和第curr个元素 // i++,j++ tmp = nums [ p0 ] ; nums [ p0 ++ ] = nums [ curr ] ; nums [ curr ++ ] = tmp ; } else if ( nums [ curr ] == 2 ) { // 交换第k个和第curr个元素 // p2-- tmp = nums [ curr ] ; nums [ curr ] = nums [ p2 ] ; nums [ p2 -- ] = tmp ; } else curr ++ ; } for ( int i = 0 ; i < nums . length ; i ++ )

How to correctly specify eclipse-plugins in category.xml of tycho eclipse-repository?

杀马特。学长 韩版系。学妹 提交于 2020-01-04 04:42:13
问题 I want to create a p2 repository of some eclipse-plugins during a tycho build. My category.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <site> <feature url="plugins/<artifact-id>-1.0.0.jar" id="<artifact-id>" version="1.0.0.qualifier"> <category name="cat" /> </feature> <category-def name="cat" label="example category" /> </site> where <artifact-id> is the maven artifact id of the eclipse-plugin that shall be included in the p2 repo. When executing the maven build I get the

P2 repositories aggregator

谁都会走 提交于 2020-01-01 19:05:01
问题 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

P2 repositories aggregator

血红的双手。 提交于 2020-01-01 19:03:19
问题 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

Command line to find units in a p2 repository using p2 query language

天涯浪子 提交于 2019-12-30 07:14:11
问题 p2 has a query language that allows to run queries on the content of a p2 repository. However all examples in the documentation assume that the query language is used from within Java, e.g. IQuery<IInstallableUnit> q = QueryUtil.createMatchQuery("this.id == $0", id); metadataRepository.query(q); How can I execute a query from the command line (without writing my own Java application)? 回答1: The p2 director application has an option to list or query the content of the given p2 repositories.

Command line to find units in a p2 repository using p2 query language

守給你的承諾、 提交于 2019-12-30 07:13:29
问题 p2 has a query language that allows to run queries on the content of a p2 repository. However all examples in the documentation assume that the query language is used from within Java, e.g. IQuery<IInstallableUnit> q = QueryUtil.createMatchQuery("this.id == $0", id); metadataRepository.query(q); How can I execute a query from the command line (without writing my own Java application)? 回答1: The p2 director application has an option to list or query the content of the given p2 repositories.

p2.inf Filtering in Tycho when building an RCP application

微笑、不失礼 提交于 2019-12-24 03:17:27
问题 I´m building an RCP application using tycho. The RCP application uses p2 and its self updateable capabilities configuring the respository in an p2.inf file. Works like a charm. Now I want to introduce a placeholder ${updatesiteurl} in the p2.inf file and replace it with the URL according to the environment for which it is built. But unforunately it get´s replaced with an empty string instead of the environment variable which I guess happens because tycho, or the p2 director, replaces some