[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-user
Subject:    RE: runtime compilation of java source files
From:       "Ajay Aggarwal" <aaggarwal () covergence ! com>
Date:       2007-05-29 13:00:32
Message-ID: 0D1719326D64BD4E9F92A0C120237678020F837B () eserv ! covergence ! com
[Download RAW message or body]

Thanks Jacob for these references!

-----Original Message-----
From: Jacob Danner [mailto:jacob.danner@gmail.com] 
Sent: Friday, May 25, 2007 5:15 PM
To: user@xmlbeans.apache.org
Subject: Re: runtime compilation of java source files

Hi Ajay,
The code that does this in XmlBeans lives in CodegenUtil.
http://svn.apache.org/viewvc/xmlbeans/trunk/src/xmlcomp/org/apache/xmlbe
ans/impl/tool/CodeGenUtil.java?revision=224386&view=markup

Otherwise the javac tool has a programmatic interface via:
 com.sun.tools.javac.Main
you can read a little more about calling this directory at:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html

If you are tinkering around with how XmlBeans handles compilation and
what not, it might be useful to take a peek at the unit tests for this
feature.
http://svn.apache.org/viewvc/xmlbeans/trunk/test/src/compile/scomp/

Best of Luck,
-Jacob Danner

On 5/25/07, Ajay Aggarwal <aaggarwal@covergence.com> wrote:
> This is not specific to XmlBeans, but I thought people here might have
> some good suggestions.
>
>
>
> I am using XmlBeans.compileXmlBeans() to compile my schema and create
> Java source files at runtime.
>
>
>
> Now I need to compile them. What tools/technologies can I use to
compile
> java sources at runtime?
>
>
>
> Thanks.
>
>
>
> -Ajay
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic