Re: [m2][javadoc-plugin] currentYear, inceptionYear

2007-04-02 Thread shinsato

Here's an answer for anyone else who may have stumbled around unnecessarily
for this one, as did I.  The unclear documentation in the javadoc-mojo is
only really clarified if you look at the source code.  The {x} items
referenced are place holders for different things, they are not standard
${x} property values.  The organizationName is converted to
MavenProject.getOrganization, which is set in the project's pom.xml. 
organization/ is an object right under the top level project/ root.  The
same is true for inceptionYear, for example...

project
  ...
  organization
nameCodehaus Mojo/name
urlhttp://mojo.codehaus.org/url
  /organization
  inceptionYear2006/inceptionYear
  ...
/project

The {currentYear} is a placeholder for the current Calendar year which the
javadoc mojo programmatically looks up.  You can't set that one.

 Harold
-- 
View this message in context: 
http://www.nabble.com/-m2--javadoc-plugin--currentYear%2C-inceptionYear-tf2507450s177.html#a9800936
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2][javadoc-plugin] currentYear, inceptionYear

2006-10-25 Thread Feniks Nator

Hello,

from:
http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
I see that the default value for the 'botttom' parameter of the javadoc
plugin has the followig value:

Copyright copy; {inceptionYear}-{currentYear} {organizationName}. All
Rights Reserved.
But I can't figure out how these values are replaced: {inceptionYear},
{currentYear}, {organizationName}
Why isn't it ${propertyName}?
I assume {inceptionYear} is mapped on ${project.inceptionYear} (or
${inceptionYear}) that can be available in the maven POM.
What if it is not present? Where does the value come from, is it current
year?

Same for {currentYear}, is this replaced by maven, or is this part of the
javadoc tool itself?
And what about organizationName ?

Thanks