you may want to have a look at the Tycho Document Bundle PLugin
https://wiki.eclipse.org/Tycho/Release_Notes/0.20
Jan
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
On Behalf Of Christian.Pontesegger@xxxxxxxxxxxx
Sent: Dienstag, 25. März 2014 11:22
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Dynamic update of build.properties
Hi,
in one of my projects I want to dynamically build help
pages
during a tycho build. Therefore I provided a dedicated JavaDoc doclet that creates help pages, updates the plugin.xml (to register a help page) and so on.
It also changes the build.properties file to add a generated “help” folder to the
“bin.includes”
During my build I run the javadoc doclet as follows:
<plugin>
<!-- Enable module documentation builder -->
<artifactId>maven-javadoc-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>2.9.1</version>
<configuration>
<outputDirectory>${project.build.directory}/../mydocs</outputDirectory>
<doclet>org.eclipse.ease.helpgenerator.ModuleDoclet</doclet>
<docletPath>${workspace}/tools/helpDoclet/bin</docletPath>
<additionalparam>-root ${project.build.directory}/..</additionalparam>
<useStandardDocletOptions>false</useStandardDocletOptions>
</configuration>
<executions>
<execution>
<id>build-docs</id>
<phase>generate-resources</phase>
<goals>
<goal>javadoc</goal>
</goals>
</execution>
</executions>
</plugin>
The doclet runs correctly, adding resources and manipulating configuration files.
Unfortunately my help folder will not be packaged into the resulting jar file.
Still I can see that plugin.xml and MANIFEST.MF were updated correctly.
Does tycho read the build.properties before and cache that data? Is there a way I can add the help folder to packaging?
thanks
Christian