You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eirik Torske <ei...@yahoo.no> on 2004/11/25 09:48:40 UTC
Using the Javadoc Plugin with multiple source trees
Our project has multiple source trees.
We have our production code - but also our unit tests,
requirement tests and integration tests.
For several reasons we want _individually generated_
Javadoc for these source trees.
The Problem:
It seems impossible to manipulate the
${maven.compile.src.set} property in the Javadoc
Plugin...
What does this line really mean (in the Javadoc Plugin
'plugin.jelly')?
maven.compile.src.set =
[${context.getAntProject().getReferences().get('maven.compile.src.set')}]
The Dream:
What I would like to do is just override the
properties of choice and execute the plugin.
Something like this:
<goal name="javadoc:requirementtest"
description="Generate API documentation for the
requirement tests">
<j:set var="maven.compile.src.set"
value="${my.requirementtest.src.dir}"/>
<attaingoal name="javadoc"/>
</goal>
...this don't work with the Javadoc Plugin.
At present, we are using the <ant:javadoc> in a
custom-made goal, but we would rather use the plugin
directly.
Is it possible? What is the trick?
Thanks
Eirik
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Using the Javadoc Plugin with multiple source trees
Posted by Eric Pugh <ep...@upstate.com>.
When you start doing lots of weird things, it is sometimes better to copy
the plugin in question, and create "myplugin" to do this stuff. Otherwise
you are constantly testing against changes made to the javadoc plugin.
Especially when they are somewhat unusual requirements.
> -----Original Message-----
> From: Eirik Torske [mailto:eiriktorske@yahoo.no]
> Sent: Thursday, November 25, 2004 9:49 AM
> To: users@maven.apache.org
> Subject: Using the Javadoc Plugin with multiple source trees
>
>
> Our project has multiple source trees.
> We have our production code - but also our unit tests,
> requirement tests and integration tests.
> For several reasons we want _individually generated_
> Javadoc for these source trees.
>
> The Problem:
> It seems impossible to manipulate the
> ${maven.compile.src.set} property in the Javadoc
> Plugin...
> What does this line really mean (in the Javadoc Plugin
> 'plugin.jelly')?
> maven.compile.src.set =
> [${context.getAntProject().getReferences().get('maven.compile.src.set')}]
>
>
> The Dream:
> What I would like to do is just override the
> properties of choice and execute the plugin.
> Something like this:
>
> <goal name="javadoc:requirementtest"
> description="Generate API documentation for the
> requirement tests">
> <j:set var="maven.compile.src.set"
> value="${my.requirementtest.src.dir}"/>
> <attaingoal name="javadoc"/>
> </goal>
>
> ...this don't work with the Javadoc Plugin.
> At present, we are using the <ant:javadoc> in a
> custom-made goal, but we would rather use the plugin
> directly.
>
> Is it possible? What is the trick?
>
> Thanks
> Eirik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org