Discussion:
[tycho-user] Replace property in feature.xml
Milan Kubec
2018-03-14 08:33:03 UTC
Permalink
Hello,
I'm building RCP Application using Tycho and there are number of
features with own feature.xml file, where the license is supposed to be
defined for given feature. I don't want to have license copy in each
feature.xml, so I would use some token or property to be replaced with
the license string during build, but cannot figure out how to do it in
Maven/Tycho. Resource filtering can be used for resources in regular
project, but it doesn't work for feature.xml in feature project. Any ideas?

Thanks

  Milan
--
---This email was virus checked by HighTec mail gateway---
SCHREIBER.Martin
2018-03-14 08:46:45 UTC
Permalink
Hi Milan,

you could use the Eclipse shared license feature [1]. Tycho supports that and copies the license text from the shared license feature to the feature(s) you are building. There was a bug [2] in Tycho which was fixed in version 1.0.0. So make sure you do have Tycho Version >=1.0.0. The bug also contains a sample project which you could use for reference.

Hth
Martin




[1] https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Ftasks%2Fpde_shared_license.htm
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=519941

-----Ursprüngliche Nachricht-----
Von: tycho-user-***@eclipse.org <tycho-user-***@eclipse.org> Im Auftrag von Milan Kubec
Gesendet: Mittwoch, 14. März 2018 09:33
An: Tycho user list <tycho-***@eclipse.org>
Betreff: [tycho-user] Replace property in feature.xml

Hello,
I'm building RCP Application using Tycho and there are number of features with own feature.xml file, where the license is supposed to be defined for given feature. I don't want to have license copy in each feature.xml, so I would use some token or property to be replaced with the license string during build, but cannot figure out how to do it in Maven/Tycho. Resource filtering can be used for resources in regular project, but it doesn't work for feature.xml in feature project. Any ideas?

Thanks

  Milan
--
---This email was virus checked by HighTec mail gateway--- _______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user
Loading...