<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Aniszczyk&#039;s (zx) diatribe &#187; p2</title>
	<atom:link href="http://aniszczyk.org/tag/p2/feed/" rel="self" type="application/rss+xml" />
	<link>http://aniszczyk.org</link>
	<description>work. life. open source. diatribes.</description>
	<lastBuildDate>Tue, 17 Apr 2012 17:09:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Debugging Eclipse p2 Dropins</title>
		<link>http://aniszczyk.org/2011/04/04/debugging-eclipse-p2-dropins/</link>
		<comments>http://aniszczyk.org/2011/04/04/debugging-eclipse-p2-dropins/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 13:38:46 +0000</pubDate>
		<dc:creator>Chris Aniszczyk</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[p2]]></category>

		<guid isPermaLink="false">http://aniszczyk.org/?p=3060</guid>
		<description><![CDATA[If you ever have any issues with the p2 dropins directory (which you shouldn&#8217;t be using in the first place), there are some handy tracing options you can use&#8230; org.eclipse.equinox.p2.core/debug=true org.eclipse.equinox.p2.core/reconciler=true Just create a .options file at the root of the Eclipse installation directory and pass -debug when you start Eclipse. You should see some [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever have any issues with the p2 dropins directory (which you shouldn&#8217;t be using in the first place), there are some handy tracing options you can use&#8230;</p>
<p><code>org.eclipse.equinox.p2.core/debug=true<br />
org.eclipse.equinox.p2.core/reconciler=true</code></p>
<p>Just create a .options file at the root of the Eclipse installation directory and pass <code>-debug</code> when you start Eclipse. You should see some debug output from p2 in the log&#8230;</p>
<p><code>[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] Repository created file:/usr/share/eclipse/dropins/pydev/<br />
[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] 	com.python.pydev.codecompletion 1.6.1.2010080312<br />
[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] 	org.python.pydev.parser 1.6.1.2010080312<br />
[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] 	org.python.pydev.feature.feature.jar 1.6.1.2010080312<br />
[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] 	org.python.pydev.help 1.6.1.2010080312<br />
[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] 	org.python.pydev.debug 1.6.1.2010080312<br />
[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] 	com.python.pydev.fastparser 1.6.1.2010080312<br />
[p2] Mon Apr 04 08:36:19 CDT 2011 - [Start Level Event Dispatcher] [reconciler] [dropins] 	org.python.pydev.feature.feature.group 1.6.1.2010080312<br />
</code></p>
<p>Happy debugging!</p>
]]></content:encoded>
			<wfw:commentRss>http://aniszczyk.org/2011/04/04/debugging-eclipse-p2-dropins/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>p2 and the Unsigned Dialog Prompt</title>
		<link>http://aniszczyk.org/2010/05/20/p2-and-the-unsigned-dialog-prompt/</link>
		<comments>http://aniszczyk.org/2010/05/20/p2-and-the-unsigned-dialog-prompt/#comments</comments>
		<pubDate>Thu, 20 May 2010 18:17:13 +0000</pubDate>
		<dc:creator>Chris Aniszczyk</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[p2]]></category>

		<guid isPermaLink="false">http://aniszczyk.org/?p=2358</guid>
		<description><![CDATA[Every wanted to make this unsigned prompt dialog go away when you&#8217;re installing things into Eclipse? Well, the best way to get rid of this dialog is to actually sign your JARs like most mature Eclipse.org projects do. At first I didn&#8217;t think it was possible to remove this dialog without signing your JARs, however, [...]]]></description>
			<content:encoded><![CDATA[<p>Every wanted to make this unsigned prompt dialog go away when you&#8217;re installing things into Eclipse?</p>
<p><a href="http://aniszczyk.org/wp-content/uploads/2010/05/unsigneddialog.png"><img class="alignnone size-medium wp-image-2359" title="p2 unsigned dialog" src="http://aniszczyk.org/wp-content/uploads/2010/05/unsigneddialog-300x110.png" alt="" width="300" height="110" /></a></p>
<p>Well, the best way to get rid of this dialog is to actually <a href="http://wiki.eclipse.org/JAR_Signing">sign your JARs</a> like most mature Eclipse.org projects do. At first I didn&#8217;t think it was possible to remove this dialog without signing your JARs, however, after working with a colleague I discovered the <code>eclipse.p2.unsignedPolicy</code> system property (you learn something new everyday, right?). For example, if you didn&#8217;t want this dialog to appear, you can set -Declipse.p2.unsignedPolicy=allow when your Eclipse-based application starts up. The valid values for <code>eclipse.p2.unsignedPolicy</code> are:</p>
<ul>
<li><strong>prompt</strong> &#8211; user is prompted for confirmation when installing unsigned content (default value)</li>
<li><strong>fail</strong> &#8211; installing unsigned software is never allowed and the install will fail</li>
<li><strong>allow</strong> &#8211; installing unsigned software is always allowed and the user is never prompted (3.4 &#8211; 3.5 behavior)</li>
</ul>
<p>If you&#8217;re interested in the original bug report, check it out <a href=" https://bugs.eclipse.org/bugs/show_bug.cgi?id=235526">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://aniszczyk.org/2010/05/20/p2-and-the-unsigned-dialog-prompt/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>P2-enabled Update Sites</title>
		<link>http://aniszczyk.org/2008/10/10/p2-enabled-update-sites/</link>
		<comments>http://aniszczyk.org/2008/10/10/p2-enabled-update-sites/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 20:25:00 +0000</pubDate>
		<dc:creator>Chris Aniszczyk</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[p2]]></category>

		<guid isPermaLink="false">http://aniszczyk.org/2008/10/10/p2-enabled-update-sites/</guid>
		<description><![CDATA[If you&#8217;re looking at doing build-to-build updates using p2, here is the right list of update sites to use (thanks Kim Moir!). It&#8217;s really nice not to have to download a new build every time you just want to update to a new build. Hopefully people don&#8217;t have to struggle as much as I did [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking at doing build-to-build updates using p2, here is the right <a href="http://wiki.eclipse.org/Eclipse_Project_Update_Sites">list</a> of update sites to use (thanks <a href="http://relengofthenerds.blogspot.com/">Kim Moir</a>!). It&#8217;s really nice not to have to download a new build every time you just want to update to a new build.</p>
<p>Hopefully people don&#8217;t have to struggle as much as I did to find this precious link <img src='http://aniszczyk.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://aniszczyk.org/2008/10/10/p2-enabled-update-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Call for Input: p2 UI</title>
		<link>http://aniszczyk.org/2008/08/17/call-for-input-p2-ui/</link>
		<comments>http://aniszczyk.org/2008/08/17/call-for-input-p2-ui/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 17:49:00 +0000</pubDate>
		<dc:creator>Chris Aniszczyk</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[p2]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://aniszczyk.org/2008/08/17/call-for-input-p2-ui/</guid>
		<description><![CDATA[For those who don&#8217;t follow a lot of the Eclipse mailing lists, the p2 team has graciously called for input on the 3.5 p2 user interface. Consider this your chance to voice your concerns and offer feedback.]]></description>
			<content:encoded><![CDATA[<p>For those who don&#8217;t follow a lot of the Eclipse mailing lists, the p2 team has graciously <a href="http://dev.eclipse.org/mhonarc/lists/p2-dev/msg00101.html">called for input</a> on the 3.5 p2 user interface.</p>
<p>Consider this your chance to voice your concerns and offer feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://aniszczyk.org/2008/08/17/call-for-input-p2-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSBootCamp7 Eclipse Videos</title>
		<link>http://aniszczyk.org/2008/07/24/osbootcamp7-eclipse-videos/</link>
		<comments>http://aniszczyk.org/2008/07/24/osbootcamp7-eclipse-videos/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 20:40:00 +0000</pubDate>
		<dc:creator>Chris Aniszczyk</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[evangelism]]></category>
		<category><![CDATA[p2]]></category>

		<guid isPermaLink="false">http://aniszczyk.org/2008/07/24/osbootcamp7-eclipse-videos/</guid>
		<description><![CDATA[For those who aren&#8217;t in the know, there was an OSBootCamp in Ottawa recently that was dedicated to Eclipse. Here are three videos of interest: p2 &#8211; Pascal Rapicault Eclipse DTP &#8211; Jo Peel Introduction to Eclipse &#8211; Wayne Beaton Good to see that there&#8217;s some evangelism going on during Eclipse&#8217;s typical off months]]></description>
			<content:encoded><![CDATA[<p>For those who aren&#8217;t in the know, there was an <a href="http://www.osbootcamp.org/wiki/index.php?title=Slides7">OSBootCamp</a> in Ottawa recently that was dedicated to Eclipse. Here are <a href="http://www.osbootcamp.org/wiki/index.php?title=Slides7#Conference_information">three videos</a> of interest:<a href="http://www.osbootcamp.org/wiki/index.php?title=Slides7#Video:_Eclipse_p2_-_Pascal_Rapicault"><br /></a>
<ul>
<li><a href="http://www.osbootcamp.org/wiki/index.php?title=Slides7#Video:_Eclipse_p2_-_Pascal_Rapicault">p2</a> &#8211; Pascal Rapicault</li>
<li><a href="http://www.virtualvernisage.com/archives/2008_jul23_633523768098906250/?hideSocial=false&amp;archiveID=80">Eclipse DTP</a> &#8211; Jo Peel</li>
<li><a href="http://www.virtualvernisage.com/archives/2008_jul23_633523729323281250/?hideSocial=false&amp;archiveID=79">Introduction to Eclipse</a> &#8211; Wayne Beaton</li>
</ul>
<p>Good to see that there&#8217;s some evangelism going on during Eclipse&#8217;s typical off months <img src='http://aniszczyk.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://aniszczyk.org/2008/07/24/osbootcamp7-eclipse-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Target Platform Preference</title>
		<link>http://aniszczyk.org/2008/04/15/new-target-platform-preference/</link>
		<comments>http://aniszczyk.org/2008/04/15/new-target-platform-preference/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 01:48:00 +0000</pubDate>
		<dc:creator>Chris Aniszczyk</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[p2]]></category>
		<category><![CDATA[pde]]></category>

		<guid isPermaLink="false">http://aniszczyk.org/2008/04/15/new-target-platform-preference/</guid>
		<description><![CDATA[To give plug-in developers out there a heads up&#8230; I want to say that there will be a new preference available to you when working with target platforms in 3.4M7: What does this preference do? Well, first, let me tell you about how PDE goes to build your target platform. By build, I mean what [...]]]></description>
			<content:encoded><![CDATA[<p>To give plug-in developers out there a heads up&#8230; I want to say that there will be a new preference available to you when working with target platforms in 3.4M7:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_2017w9FY4Do/SATqqfT-vyI/AAAAAAAAAfE/FJYXL_oxVcw/s1600-h/targetplatform.png"><img style="cursor:pointer; cursor:hand;" src="http://bp1.blogger.com/_2017w9FY4Do/SATqqfT-vyI/AAAAAAAAAfE/FJYXL_oxVcw/s320/targetplatform.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5189530686318362402" /></a></p>
<p>What does this preference do? </p>
<p>Well, first, let me tell you about how PDE goes to build your target platform. By build, I mean what PDE does when you point it to a location and you get a target platform out of it. There has always been a little magic inside that operation. The magic involves PDE analyzing your target platform location and looking to see if it can find a configuration of plug-ins installed. How did PDE do this? In the the era of before p2, there was a platform.xml file that was kept by Update that listed the set of recognized plug-ins. In the era after p2, there is a file called bundles.info which serves a similar purpose. These files were there so the runtime can make smart decisions on what to actually run when started. For example, you could have 10 versions of plug-in A on disk, but only one version listed  in one of those configuration files so when Eclipse is ran, the runtime only knows about what is listed in the configuration file (see a sample bundles.info below).</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_2017w9FY4Do/SATvm_T-vzI/AAAAAAAAAfM/xXoGSIdE_BU/s1600-h/bundlesinfo.png"><img style="cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_2017w9FY4Do/SATvm_T-vzI/AAAAAAAAAfM/xXoGSIdE_BU/s320/bundlesinfo.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5189536123746959154" /></a></p>
<p>So if PDE found one of these &#8220;configuration files&#8221; it would construct your target platform to reflect what would actually be running in your target. If it didn&#8217;t find one of these configuration files, it will then just manually scan the file system and build a target platform with what plug-ins PDE found on disk. In the 10 versions of plug-in A case, it would populate the target platform with all 10 versions if it couldn&#8217;t find a target &#8220;configuration file.&#8221;</p>
<p>When p2 was introduced in the SDK (3.4M6), the bundles.info file was always around and caused confusion for people when they grabbed the SDK, unzipped something like WTP and all their dependencies, and pointed their target platform to the location to only see the SDK set of bundles. PDE was almost being too smart here&#8230; it&#8217;s analysis of the target platform was correct, ie., only the SDK set of bundles have been discovered by p2 and since the target hasn&#8217;t been launched, the unzipped set of bundles (WTP) haven&#8217;t been discovered yet.</p>
<p>To not break people&#8217;s existing workflows, PDE added this preference to the target platform preference page with some smart initialization. If you&#8217;re target == host, we will attempt to build the target platform using the target&#8217;s configuration. If your target != host, PDE will revert to manually scanning for plug-ins on the file system to build your target platform. It seems 99.9% of the Eclipse plug-in development community has been spoiled by that workflow so PDE needs to adapt. However, if you wish to change this behavior, the preference will allow you to do that based on your needs.</p>
<p>I hope this clarifies things for some people who have been experiencing growing pains with the 3.4M6 version of Eclipse. It pains me to expose this preference, but it seems it may be a good thing in the long run. The important thing to take away here is that an unzipped plug-in != installed plug-in.</p>
<p>Related bugs:<br />[bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=226037">226037</a>] &#8211; initialization policy for target platform should be different based on location<br />[bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=225148">225148</a>] &#8211; P2 PDE target doesn&#8217;t work, easily</p>
]]></content:encoded>
			<wfw:commentRss>http://aniszczyk.org/2008/04/15/new-target-platform-preference/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>

