users@jaxb.java.net

Re: simple question

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 16 Mar 2006 13:54:42 -0800

jason white wrote:
> I have built my plugin the way I want it, it's in a jar.
>
> Now, how can i call my plugin from the command line?
>
> I have called xjc from the jaxb\bin local directory having my new jar in the
> jaxb\lib to no avail.
>
> Doesn't seem to recognize my flag...Do i really have to bundle my plugin in
> the jaxb source jar to get it to work? That doesn't seem correct...

You are right. This needs to be improved. Today, you can do it by:

   $ java -cp jaxb-xjc.jar:yourplugin.jar ...

But I want it to be something like:

   $ xjc.sh -cp yourplugin.jar ....

Thanks for bringing up this excellent point.

Meanwhile, if you use Ant task, you can do this very nicely by putting
your jar in a part of <taskdef>.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com