<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/12/2012 09:28 AM, Max Rydahl
Andersen wrote:<br>
</div>
<blockquote
cite="mid:1A89C7B8-8343-447B-902C-91CA9BC57192@redhat.com"
type="cite">
<pre wrap="">Mistria - does tycho source feature automatically exclude plugins that doesn't have sources or does it enforce every plugin
listed in the original feature to have sources (even if just empty)
</pre>
</blockquote>
The issue is that if Feature F includes bundle B, then source
feature F.source will include bundle B.source. So if we want to rely
on Tycho automation for source features, we have to ensure you can
get a source Bundle B.source for any bundle B. Otherwise, source
feature creation will fail.<br>
In case there is no source, it seems like Tycho-source-plugin will:<br>
* Not perform (don't generate anything) if there is no source folder
specified in build.properties<br>
* Fail if there is no source folder and requireSourceRoots is set to
true<br>
* Succeed (?) if there is an empty source folder.<br>
<br>
In our case, for cohesion with source features, we want a behavior
equivalent to having requireSourceRoots=true, ie we want to generate
source bundle for any bundle. So the only way to get it working so
far is to have an empty source folder:
<a class="moz-txt-link-freetext" href="http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-source-plugin/src/main/java/org/eclipse/tycho/source/OsgiSourceMojo.java#n159">http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-source-plugin/src/main/java/org/eclipse/tycho/source/OsgiSourceMojo.java#n159</a><br>
<div class="moz-signature">-- <br>
Mickael Istria<br>
Eclipse developer at <a href="http://www.jboss.org/tools">JBoss,
by Red Hat</a><br>
<a href="http://mickaelistria.wordpress.com">My blog</a> - <a
href="http://twitter.com/mickaelistria">My Tweets</a></div>
</body>
</html>