o Applying Rodney's patch for date checking in javadoc generation.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112729 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl
2003-01-24 14:09:57 +00:00
parent 1d343d7c0e
commit e2e957cdde

View File

@@ -23,7 +23,17 @@
<!-- Get the year to display in the Javadocs -->
<tstamp>
<format property="year" pattern="${pom.inceptionYear}-yyyy"/>
<format property="currentYear" pattern="yyyy"/>
</tstamp>
<tstamp>
<j:choose>
<j:when test="${pom.inceptionYear.equals(currentYear)}">
<format property="year" pattern="yyyy"/>
</j:when>
<j:otherwise>
<format property="year" pattern="${pom.inceptionYear}-yyyy"/>
</j:otherwise>
</j:choose>
</tstamp>
<property name="copyright"