[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Sometimes wrong result of tycho-packaging-plugin
|
the problem is probably related to bin.includes.
content of target/classes/ will only be included if there is a corresponding bin.includes entry '.' (which I assume your doc plugins do not have if they don't have code)
bin.includes=about.mappings OTOH will take the file from the project root where no values are replaced.
You might want to have a look at additionalFileSets [1]
Regards
Jan
[1] https://www.eclipse.org/tycho/sitedocs/tycho-packaging-plugin/package-plugin-mojo.html#additionalFileSets
> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
> On Behalf Of Eike Stepper
> Sent: Mittwoch, 14. Januar 2015 14:36
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] Sometimes wrong result of tycho-packaging-plugin
>
> Hi,
>
> I found something strange in my build results and hope that someone has an
> idea:
>
> All my plugins have an about.mappings file with the follwing content:
>
> 0=${build.id}
> 1=${git.branch}
> 2=${git.commit}
>
> The POMs of all plugins have this:
>
> <build>
> <resources>
> <resource>
> <directory>.</directory>
> <filtering>true</filtering>
> <includes>
> <include>about.mappings</include>
> </includes>
> </resource>
> </resources>
> </build>
>
> For most of these plugins my Tycho build produces plugin jars with proper
> values in this file, e.g.:
>
> 0=788
> 1=master
> 2=0e8636a292085da5325ace92cfb3728dd26c7cc8
>
> But for all my "...doc" plugins the resulting plugin jars contain the file
> *without* replaced values. The build log
> always shows the same lines, no matter what plugin is built (see attached
> snippets log1 and log2).
>
> For the "bad" plugins the copied file under
> org.eclipse.oomph.setup.doc/target/classes is still correct (values
> replaced), but, as mentioned above, the jars that are built of them have the
> unreplaced/source versions of this file in it.
>
> Does someone have a clue what's going on? Am I overlooking a configuration
> somewhere?
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>