The expression one also allows you to set params on the command line
with -D. Is there a way to do that without expression? 

-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 9:24 AM
To: Maven Developers List
Subject: Re: Difference between default-value and expression metatags

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:
> 
> /**
> [EMAIL PROTECTED]
default-value="${project.build.directory}/generated-site/xdoc"
> */
> private File outputDirectory;
> 
> And
> 
> /**
> [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to