Uday Kamath wrote:
> String args = " -nv use-runtime com.eidea.util.xml.jaxbri";
> Commandline.Argument argument = xjcTask.createArg();
> argument.setValue(args);
This set one argument " -nv use-runtime com.eidea.util.xml.jaxbri",
which is recognized as a file name because it doesn't start with '-'.
I think you should get rid of the leading whitespace, and then use
argument.setLine(args);
You are also missing '-' in "-use-runtime".
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com