You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Cabasson Denis <de...@insee.fr> on 2006/08/09 15:16:06 UTC

Difference between default-value and expression metatags

Well, I was just wondering, what is the difference between:

/**
*@parameter default-value="${project.build.directory}/generated-site/xdoc"
*/
private File outputDirectory;

And

/**
*@parameter expression="${project.build.directory}/generated-site/xdoc"
*/
private File outputDirectory;

Which of the above is the preferred declaration, and why? (since they seem
to result in the same variable)

If some documentation about this is available somewhere, please forgive me
for not knowing where, and please direct me to the right place.

Thanks!

Denis

Re: Difference between default-value and expression metatags

Posted by Brett Porter <br...@apache.org>.
They're the same. The first is preferred, and the second likely to be 
deprecated in future.

- Brett

On 9/08/2006 11:16 PM, Cabasson Denis wrote:
> Well, I was just wondering, what is the difference between:
> 
> /**
> *@parameter default-value="${project.build.directory}/generated-site/xdoc"
> */
> private File outputDirectory;
> 
> And
> 
> /**
> *@parameter expression="${project.build.directory}/generated-site/xdoc"
> */
> private File outputDirectory;
> 
> Which of the above is the preferred declaration, and why? (since they seem
> to result in the same variable)
> 
> If some documentation about this is available somewhere, please forgive me
> for not knowing where, and please direct me to the right place.
> 
> Thanks!
> 
> Denis
> 


-- 
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/

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


Re: Difference between default-value and expression metatags

Posted by Dennis Lundberg <de...@apache.org>.
If you haven't read it already, I would recommend reading this:
   http://maven.apache.org/developers/mojo-api-specification.html

It doesn't answer the issue at hand, but then Brett has already done that :)

-- 
Dennis Lundberg



Cabasson Denis wrote:
> Well, I was just wondering, what is the difference between:
> 
> /**
> *@parameter default-value="${project.build.directory}/generated-site/xdoc"
> */
> private File outputDirectory;
> 
> And
> 
> /**
> *@parameter expression="${project.build.directory}/generated-site/xdoc"
> */
> private File outputDirectory;
> 
> Which of the above is the preferred declaration, and why? (since they seem
> to result in the same variable)
> 
> If some documentation about this is available somewhere, please forgive me
> for not knowing where, and please direct me to the right place.
> 
> Thanks!
> 
> Denis
> 


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