Thanks Andrew, I gotcha! Thanks to Tim and Erik too!!!
> However, xjavadoc.ant.XJavadocTask has a setEncoding(String) method
> that's commented "set source file charset", and DocletTask extends
> XJavadocTask (and all the others extend DocletTask). So, I reckon
> putting a encoding="ISO-8859-1" (or whatever) parameter on any doclet
> task (not subtask) ought to do the trick.
I override startProcess() method of my subtask and call setDocEncoding()
method (and not setEncoding()) of XJavaDoc:
public class ... extends TemplateSubTask {
private String encoding = "UTF-8" //Default
[...stuff...]
protected void startProcess() throws XDocletException {
super.getXJavaDoc().setDocEncoding(getEncoding());
super.startProcess();
}
public String getEncoding() {
return encoding;
}
public void setEncoding(String string) {
encoding = string;
}
}
and now I call:
<strutsresources
locale="pt_BR"
mergedir="${mergedir}"
destDir="${destdir}"
encoding="ISO-8859-1"
/>
Thanks again!
--
Eduardo Franceschi
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user