ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: java task - invalid flag
Date Thu, 27 Jan 2005 23:05:00 GMT
> -----Original Message-----
> From: Douglas Kramer [mailto:Douglas.Kramer@Sun.COM]
> Sent: Thursday, January 27, 2005 4:53 PM
> To: user@ant.apache.org
> Subject: Ant: java task - invalid flag
> 
> The following java task fails with this error:
> 
> javadoc: error - invalid flag: -doclet
> com.sun.tools.doclets.formats.mif.MIFDoclet
> 
> which is a perfectly valid option for javadoc.
> 
> Notice java calls javadoc Main, which then
> 
>      <java dir="${sample}/example-commandline"
> classname="com.sun.tools.javadoc.Main" maxmemory="20M">
>          <classpath>
>             <pathelement
>
location="/mifdoclet/ws/build/jar/mifdoclet_toolkit.jar"
> />
>             <pathelement
>                 location="/jdk1.5.0/lib/tools.jar" />
>          </classpath>
>          <arg value="-doclet
com.sun.tools.doclets.formats.mif.MIFDoclet"
> />
>          <arg value="-d ./sample-out" />
>          <arg value="-sourcepath ../sample-src" />
>          <arg value="com.package1" />
>      </java>

Why not use <javadoc> instead?

In any case, <arg> has two distinct attributes:
1) value for a single argument used as-is, even if with spaces.
2) line for a command-line like multi-arg sequence with spaces in
between args.

You're confusing value with line above. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message