You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Erik Husby <mh...@broad.mit.edu> on 2004/07/27 18:49:18 UTC

Variables in xdoc files?

For an internal use plugin, I would like my site to include download 
instructions that show the proper Maven command to get the current 
version of the plugin. Since the plugin's project.xml has the current 
version, it seems reasonable that I could have the plugin's index.xml 
have something like:

<source>
 >maven plugin:download -Dversion=${pom.currentVersion} 
-DgroupId=prodinfo-plugin -DartifactId=prodinfo-plugin
</source>

However, this does not work.

I've also tried $pom.currentVersion as well as $!project.currentVersion 
since that mirrors the $!project.name that is found in the 
maven-xdoc-plugin template index.xml. All I end up with is the text 
${pom.currentVersion}

What am I missing?

-- 
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard 
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Variables in xdoc files?

Posted by Dion Gillard <di...@gmail.com>.
On Tue, 27 Jul 2004 12:49:18 -0400, Erik Husby <mh...@broad.mit.edu> wrote:
> For an internal use plugin, I would like my site to include download
> instructions that show the proper Maven command to get the current
> version of the plugin. Since the plugin's project.xml has the current
> version, it seems reasonable that I could have the plugin's index.xml
> have something like:
> 
> <source>
>  >maven plugin:download -Dversion=${pom.currentVersion}
> -DgroupId=prodinfo-plugin -DartifactId=prodinfo-plugin
> </source>
> 
> However, this does not work.
> 
> I've also tried $pom.currentVersion as well as $!project.currentVersion
> since that mirrors the $!project.name that is found in the
> maven-xdoc-plugin template index.xml. All I end up with is the text
> ${pom.currentVersion}
> 
> What am I missing?

That xdocs aren't scripts.

If you have a look at the xdoc plugin and it's templates, you'll see
that these templates are used to generate xdoc files from the
project.xml.

You could do something similar in your plugin.
-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org