Hi,
I wanted to write a postGoal for javadoc, and in the postGoal, access the
"maven.javadoc.destdir" property, which is set by the javadoc plugin. But
accessing the property in the postGoal gives an empty value.
Is it not possible to do this:
<postGoal name="javadoc">
<ant:mkdir dir="${maven.javadoc.destdir}/uml" />
<ant:copy todir="${maven.javadoc.destdir}/uml">
<ant:fileset dir="${maven.docs.src}/uml">
<ant:include name="**" />
</ant:fileset>
</ant:copy>
</postGoal>
seems like it is not :-( Instead, i had a look in the plugin.properties of the
javadoc plugin, and found out it generates the property from
"${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}".
So I just used that in my postGoal instead. But this is vulnerable to the
situation, where javadoc plugin changes this.
Suggestions?
Regards, Per
--
Per Olesen @ Nordija A/S - www.nordija.com - main#: +45 70 20 25 10
email: [EMAIL PROTECTED] - cell#: +45 23 38 95 81
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]