users@jaxb.java.net

Re: running xjc from java program

From: Marcos <marcos_at_softingsystems.com.br>
Date: Wed, 07 Mar 2007 07:35:45 -0300

Milan Kuchtiak escreveu:

> Hi,
> Is that somehow possible to run xjc compiler from inside the java
> program.
> I am looking for something better than
> Runtime.getRuntime().exec(String[] arguments));
> What I need to do is start XJC for given schema file and get the
> result of XJC: set of java classes.
>
> Thank You for any help.

Yes sure you can :-) take a look at my post
https://jaxb.dev.java.net/servlets/ReadMsg?list=users&msgNo=6534
You need basically use the façade described in the code :-)

>
> Milan

Hop it helps

Regards

-- 
Marcos H. W.
Softing Systems
Systems Analyst
+55 11 38770360
/** 
 * @see https://jaxb2-commons.dev.java.net
 */
/**
 * "...Use the Force ...;-)" */
 *
 * @see http://www.gentoo.org/
 */