Hi

Imagine that the CLI tool you use is really just a shell script calling java on a java class file which has a main that takes the arguments of the file that you want to compile, and then reads and compiles it.

So, what you want to do is find the java class that is invoked by the script, and replicate what its main() does.

You can also invoke the java compiler as a call to it's main, and then use reflection to invoke your new class.

The rest is an exercise for the reader :-)

Regards

Nathan

Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - +34-638-083-675, +34-91-201-2139 - AIM NathanCisco - [EMAIL PROTECTED]

On 30 Jun 2006, at 12:46, Arif Shaon wrote:

Hi,

I am fairly new to XMLBEans. I know one can generate java classes from xsd (XML SChema) file using scomp. But I was wondering if there is any way it would be done on the fly. For Example, the user would be able to specify the file path for the XSD file to the program, and the program would then load the file, compile it, generate the java classes and manipulate the classes as required.

Could this be done?
Any help would be greatly appreciated.

Best Regards

Arif



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to