You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2007/07/12 00:54:13 UTC
[jira] Closed: (MJAVADOC-133) Javadoc fails if footer contains
newlines
[ http://jira.codehaus.org/browse/MJAVADOC-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Siveton closed MJAVADOC-133.
------------------------------------
Assignee: Vincent Siveton
Resolution: Fixed
Fix Version/s: 2.3
Replaced all \n by nothing in the header and footer parameter
> Javadoc fails if footer contains newlines
> -----------------------------------------
>
> Key: MJAVADOC-133
> URL: http://jira.codehaus.org/browse/MJAVADOC-133
> Project: Maven 2.x Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: Windows XP, java 1.6 u1
> Reporter: Francois Fernandes
> Assignee: Vincent Siveton
> Fix For: 2.3
>
> Attachments: options, packages, testcase.zip
>
>
> The current version of the javadoc plugin fails if the footer specified for the project contains newline characters:
> {code:xml}
> <plugin>
> <artifactId>maven-javadoc-plugin</artifactId>
> <executions>
> <execution>
> <goals>
> <goal>jar</goal>
> </goals>
> <phase>package</phase>
> </execution>
> </executions>
> <configuration>
> <excludePackageNames>*.internal*</excludePackageNames>
> <footer>
> <![CDATA[
> <table border="0" cellpadding="0">
> <tr><td><img src="{@docRoot}/icon.gif" width="32" /></td><td> All rights reserved.</td></tr></table>
> ]]>
> </footer>
> </configuration>
> </plugin>
> {code}
> The resulting output is as follows:
> [INFO] Error while creating archive:Exit code: 1 - javadoc: error - Illegal package name: "<tr><td><img"
> javadoc: error - Illegal package name: "src="
> javadoc: error - Illegal package name: "{@docRoot}/icon.gif"
> javadoc: error - Illegal package name: "width="
> javadoc: error - Illegal package name: "32"
> javadoc: error - Illegal package name: "/></td><td>Copyright"
> javadoc: error - Illegal package name: "&"
> {noformat}
> {noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira