Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Build an Eclipse epp product with Tycho

>3) I don't know how to perform filtering like it seems to be done is the epp build. In the branding plugin, there is a about.mappings with a @buildId@ tag that should be replaced at 
>build time (maybe by the ant script). How can I do something similar with Tycho? Is it possible to use the m-resources-p? Do you have an example? I would like to replace @buildId@ by 
>${project.version}

yes, resource filtering with maven-resources-plugin should be the way to go [1].

You could use e.g. ${maven.build.timestamp} [2] or tycho-specific properties

${unqualifiedVersion}
${buildQualifier}

Regards,
Jan

[1] http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html 
[2] http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Interpolation 


-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Julien HENRY
Sent: Donnerstag, 13. Oktober 2011 09:56
To: Tycho user list
Subject: [tycho-user] Build an Eclipse epp product with Tycho

Hi,

I'm trying to create a custom product with tycho that extends standard Eclipse JEE package. At first I'm trying to rebuild Eclipse JEE package with Tycho and to obtain something identical to the official package. So I have create a Tycho multimodule project with:
  - a branding plugin (inspired from [1])
  - a feature with all content of the product (inspired from [2])
  - a product (eclipse-repository)

I have something nearly working except the issues below:

1) For the Linux package, eclipse binary do not have the execution permission (looks like bug [3])
2) Tycho do not support a mix of bundle and feature in the .product definition (bug [4])
3) I don't know how to perform filtering like it seems to be done is the epp build. In the branding plugin, there is a about.mappings with a @buildId@ tag that should be replaced at build time (maybe by the ant script). How can I do something similar with Tycho? Is it possible to use the m-resources-p? Do you have an example? I would like to replace @buildId@ by ${project.version}


I have workarounds for 1) and 2), but I would be interested by help for 3)

Thanks

Julien


[1] http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.epp/packages/org.eclipse.epp.package.jee/?root=Technology_Project&pathrev=INDIGO
[2] http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.epp/packages/org.eclipse.epp.package.jee.feature/?root=Technology_Project&pathrev=INDIGO
[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=349877
[4] https://bugs.eclipse.org/bugs/show_bug.cgi?id=359090

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top