Hi Romain,
>about the javadoc I thought of the dedicated folder:
>http://maven.apache.org/plugins/maven-javadoc-plugin/examples/javadoc-resources.html.
>
That wont work if you are already using a doclet like umlgraph. I have
tested locally that indeed I can generate the files with
<output>${basedir}/src/main/javadoc/com/nestorurquiza/orchestration/camel/route</output>
however they will get replaced by those generated by
<doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>.
I can certainly put the files in a folder like
/src/main/javadoc/com/nestorurquiza/orchestration/camel/route/doc-files then
use an html referencing all pictures or several html using a picture each
but that will be a lot of handcrafting and the developer will need to add
entries in javadocs manually as new routes are introduced. For now I will
just have a link on WIKI to the doc-files url which lists all images inside.
I believe a feature request to have a doclet that could include the image as
part of the class in javadocs just as UMLGraph does would be beneficial.
>Maybe what i'll say will be obvious fo ryou so sorry if it is the case.
>Duplicate the <execution> block, change the id (it is unique) and move
><configuration> block in the execution one. This way you can generate
>mutiple diagrams in the same build.
Thanks for the clarification, it was not clear to me I could do that.
Even though there is a lot of repetition the below works for now just fine.
I believe the idea of the package should be considered a feature request
just in case anybody has the time in the future to take a look at it:
<execution>
<id>route1</id>
<phase>package</phase>
<goals>
<goal>diagram</goal>
</goals>
<configuration>
<input>com.nestorurquiza.orchestration.camel.route.SampleCamelRouteBuilder</input>
<view>false</view>
<width>480</width>
<height>640</height>
<output>${basedir}/src/main/javadoc/com/nestorurquiza/orchestration/camel/route/doc-files</output>
<type>camel</type>
<fileType>java</fileType>
<format>png</format>
<adjust>true</adjust>
</configuration>
</execution>
<execution>
<id>route2</id>
<phase>package</phase>
<goals>
<goal>diagram</goal>
</goals>
<configuration>
<input>com.nestorurquiza.orchestration.camel.route.SampleCamelRouteBuilder2</input>
<view>false</view>
<width>480</width>
<height>640</height>
<output>${basedir}/src/main/javadoc/com/nestorurquiza/orchestration/camel/route/doc-files</output>
<type>camel</type>
<fileType>java</fileType>
<format>png</format>
<adjust>true</adjust>
</configuration>
</execution>
Thanks a lot for taking your time to read and for bringing this tool to the
community,
-Nestor
--
View this message in context:
http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5700572.html
Sent from the Camel - Users mailing list archive at Nabble.com.