Discussion:
[tycho-user] How to generate update site containing source code?
Luthiger Benno (ID SWS)
2017-08-30 16:23:03 UTC
Permalink
Hello



How can I build a Plug-in/Feature based product with Tycho that generates an
update site containing the bundles' source code?

I've configured both the "tycho-source-plugin" and the
"tycho-source-feature-plugin". The jars containing the bundles' source code
are created (in the Plug-in projects' target directory). However, they are
not assembled in the update site's target directory.



Note: I've set up a Tycho project structure as proposed on
www.vogella.com/tutorials/EclipseTycho/article.html
<http://www.vogella.com/tutorials/EclipseTycho/article.html> .



Regards,

Benno
Nick Boldt
2017-08-30 16:49:34 UTC
Permalink
Have you tried adding the source features to the update site's category.xml?

eg., https://github.com/jbosstools/jbosstools-server/blob/master/site/category.xml#L26

If you're not generating source features, you can add <bundle>s to the
update site directly.

If you ARE generating source features, make sure you've done all the steps here:

https://wiki.eclipse.org/Minerva#Source

Hope that helps,

Nick


On Wed, Aug 30, 2017 at 12:23 PM, Luthiger Benno (ID SWS)
Post by Luthiger Benno (ID SWS)
Hello
How can I build a Plug-in/Feature based product with Tycho that generates an
update site containing the bundles’ source code?
I’ve configured both the “tycho-source-plugin” and the
“tycho-source-feature-plugin”. The jars containing the bundles’ source code
are created (in the Plug-in projects’ target directory). However, they are
not assembled in the update site’s target directory.
Note: I’ve set up a Tycho project structure as proposed on
www.vogella.com/tutorials/EclipseTycho/article.html.
Regards,
Benno
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
Luthiger Benno (ID SWS)
2017-08-31 10:48:03 UTC
Permalink
Hello

Thanks a lot for the fast response and the valuable hints.

I’ve made some progress but I’m still not done. I’ve create a feature for the sources as described on https://wiki.eclipse.org/Minerva#Source. I’ve created a feature.xml and added the bundles whose source code I’d like to be distributed. Running Maven, I see two jar files created while the feature project is processed:

tycho-packaging-plugin: package-feature creates a jar file "feature.name-1.0.0-SNAPSHOT.jar"
tycho-source-feature-plugin: source-feature creates a jar file "feature.name-1.0.0-SNAPSHOT -sources-feature.jar"
The latter seems the one I’m interested in.

How do I add the feature to the update site’s category.xml in a way the tycho build process creates the update site using feature.name-1.0.0-SNAPSHOT -sources-feature.jar (and not feature.name-1.0.0-SNAPSHOT.jar)?

Regards,
Benno

-----Original Message-----
From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Nick Boldt
Sent: Mittwoch, 30. August 2017 18:50
To: Tycho user list <tycho-***@eclipse.org>
Subject: Re: [tycho-user] How to generate update site containing source code?

Have you tried adding the source features to the update site's category.xml?

eg., https://github.com/jbosstools/jbosstools-server/blob/master/site/category.xml#L26

If you're not generating source features, you can add <bundle>s to the update site directly.

If you ARE generating source features, make sure you've done all the steps here:

https://wiki.eclipse.org/Minerva#Source

Hope that helps,

Nick
Post by Luthiger Benno (ID SWS)
Hello
How can I build a Plug-in/Feature based product with Tycho that
generates an update site containing the bundles’ source code?
I’ve configured both the “tycho-source-plugin” and the
“tycho-source-feature-plugin”. The jars containing the bundles’ source
code are created (in the Plug-in projects’ target directory). However,
they are not assembled in the update site’s target directory.
Note: I’ve set up a Tycho project structure as proposed on
www.vogella.com/tutorials/EclipseTycho/article.html.
Regards,
Benno
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
Nick Boldt
2017-08-31 21:42:36 UTC
Permalink
If you simply add both the feature and the source feature, you'll get
both on the site.

Here's an example with both:

https://github.com/jbosstools/jbosstools-openshift/blob/master/site/category.xml

And the pom that builds it:

https://github.com/jbosstools/jbosstools-openshift/blob/master/site/pom.xml



On Thu, Aug 31, 2017 at 6:48 AM, Luthiger Benno (ID SWS)
Post by Luthiger Benno (ID SWS)
Hello
Thanks a lot for the fast response and the valuable hints.
tycho-packaging-plugin: package-feature creates a jar file "feature.name-1.0.0-SNAPSHOT.jar"
tycho-source-feature-plugin: source-feature creates a jar file "feature.name-1.0.0-SNAPSHOT -sources-feature.jar"
The latter seems the one I’m interested in.
How do I add the feature to the update site’s category.xml in a way the tycho build process creates the update site using feature.name-1.0.0-SNAPSHOT -sources-feature.jar (and not feature.name-1.0.0-SNAPSHOT.jar)?
Regards,
Benno
-----Original Message-----
Sent: Mittwoch, 30. August 2017 18:50
Subject: Re: [tycho-user] How to generate update site containing source code?
Have you tried adding the source features to the update site's category.xml?
eg., https://github.com/jbosstools/jbosstools-server/blob/master/site/category.xml#L26
If you're not generating source features, you can add <bundle>s to the update site directly.
https://wiki.eclipse.org/Minerva#Source
Hope that helps,
Nick
Post by Luthiger Benno (ID SWS)
Hello
How can I build a Plug-in/Feature based product with Tycho that
generates an update site containing the bundles’ source code?
I’ve configured both the “tycho-source-plugin” and the
“tycho-source-feature-plugin”. The jars containing the bundles’ source
code are created (in the Plug-in projects’ target directory). However,
they are not assembled in the update site’s target directory.
Note: I’ve set up a Tycho project structure as proposed on
www.vogella.com/tutorials/EclipseTycho/article.html.
Regards,
Benno
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
Luthiger Benno (ID SWS)
2017-09-01 10:13:14 UTC
Permalink
Hello Nick

This worked!
I had to understand that the empty subfolder /sourceTemplateFeature does the trick.

Thanks a lot,
Benno

-----Original Message-----
From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Nick Boldt
Sent: Donnerstag, 31. August 2017 23:43
To: Tycho user list <tycho-***@eclipse.org>
Subject: Re: [tycho-user] How to generate update site containing source code?

If you simply add both the feature and the source feature, you'll get both on the site.

Here's an example with both:

https://github.com/jbosstools/jbosstools-openshift/blob/master/site/category.xml

And the pom that builds it:

https://github.com/jbosstools/jbosstools-openshift/blob/master/site/pom.xml
Post by Luthiger Benno (ID SWS)
Hello
Thanks a lot for the fast response and the valuable hints.
tycho-packaging-plugin: package-feature creates a jar file "feature.name-1.0.0-SNAPSHOT.jar"
tycho-source-feature-plugin: source-feature creates a jar file "feature.name-1.0.0-SNAPSHOT -sources-feature.jar"
The latter seems the one I’m interested in.
How do I add the feature to the update site’s category.xml in a way the tycho build process creates the update site using feature.name-1.0.0-SNAPSHOT -sources-feature.jar (and not feature.name-1.0.0-SNAPSHOT.jar)?
Regards,
Benno
Felix Dorner
2017-08-30 16:55:20 UTC
Permalink
Make sure you don't use the deprecated update site artifact type, I don't
remember it's name now.

On Aug 30, 2017 6:23 PM, "Luthiger Benno (ID SWS)" <
Post by Luthiger Benno (ID SWS)
Hello
How can I build a Plug-in/Feature based product with Tycho that generates
an update site containing the bundles’ source code?
I’ve configured both the “tycho-source-plugin” and the
“tycho-source-feature-plugin”. The jars containing the bundles’ source code
are created (in the Plug-in projects’ target directory). However, they are
not assembled in the update site’s target directory.
Note: I’ve set up a Tycho project structure as proposed on
www.vogella.com/tutorials/EclipseTycho/article.html.
Regards,
Benno
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Loading...