users@jaxb.java.net

Re: simple question

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 16 Mar 2006 15:39:18 -0800

I fixed this in the repository so that you can do

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

Kohsuke Kawaguchi wrote:
> 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