users@jaxb.java.net

Re: Using Java, Ant and XJC

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 22 Feb 2005 14:08:36 -0800

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