I can no longer build jakarta-oro's dist target on Win2K. The problem is
the following:
<javadoc packagenames
="org.apache.oro.io,org.apache.oro.text,org.apache.oro.text.regex,org.apache.oro.text.awk,org.apache.oro.text.perl,org.apache.oro.util"
sourcepath="${build.src}"
destdir="${javadoc.destdir}"
overview="${build.src}/org/apache/oro/overview.html"
author="true"
version="true"
windowtitle="${Name} ${version} API"
doctitle="${Name} ${version} API"
header="<a href="http://jakarta.apache.org/oro/"
target=_top><img src="[EMAIL PROTECTED]/../images/logoSmall.gif"
alt="Jakarta ORO" width=48 height=47 align=center border=0 hspace=1
vspace=1></a>"
bottom="Copyright © ${year} Apache Software Foundation. All
Rights Reserved.">
</javadoc>
More specifically, the problem is that header has quotes in it, and the
org.apache.tools.ant.types.CommandLine.quoteArgument assumes a Unix
compatible command line.
For Win2K, the strategy that seems to work for passing an argument which
contains double quotes through the command interpreter is to triple quote
the double quote. An example seems best here:
Unix: -header '<a href="http://jakarta.apache.org">Jakarta</a>'
Win2K: -header "<a href="""http://jakarta.apache.org""">Jakarta</a>'
I'm looking for suggestions on how best to approach this problem.
- Sam Ruby