ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Ashton <mash...@Novarra.com>
Subject RE: javadoc-task: HTML-Code for the doctitle attribute
Date Wed, 06 Jun 2001 17:16:11 GMT
As the error message states, you should use "&lt;" for the less-than sign
and "&gt;" for the greater than sign. So your doctitle attribute would be:

doctitle="&lt;h1&gt;RODON&lt;/h1&gt;"

-----Original Message-----
From: Klaus Thorwart [mailto:K.Thorwart@rose.de]
Sent: Wednesday, June 06, 2001 11:47 AM
To: ant-user@jakarta.apache.org
Subject: javadoc-task: HTML-Code for the doctitle attribute


Hi all,

I have set up a javadoc task for our software which works fine, as long
as I use only pure text for the values of the attributes of doctitle,
bottom and header. As soon as I try to use real HTML-Tags within these
values I get messages like the following:

ant -buildfile tmp.xml
Buildfile: tmp.xml

BUILD FAILED

/klaus-dev/RODON-II/LM/rodonII/tmp.xml:19: Use "&lt;" for "<" in
attribute values.

Total time: 2 seconds


The corresponding xml-file has the following contents:

<project name="simpleCompile" default="docs" basedir=".">
   <target name="init">
      <property name="sourceDir" value="src" />
      <property name="tstSourceDir" value="tstsrc" />
      <property name="outputDir" value="cls" />
      <property name="tstOutputDir" value="tstcls" />
      <property name="build.compiler" value="modern" />
      <property name="reports.tests" value="tstcls" />
   </target>
   <target name="docs" depends="init">
     <javadoc packagenames="x.y.z"
           classpath="${outputDir}:${tstOutputDir}:bin/AcmeCrypto.jar"
           sourcepath="src"
           destdir="reference"
           author="true"
           version="true"
           use="true"
           windowtitle="RODON II Reference"
           doctitle="<h1>RODON</h1>">
     </javadoc>
   </target>
</project>

Does anybody know how to solve this problem ?

Thanks in advance
  Klaus

Mime
View raw message