>> Maybe better way to compile files is to invoke javac as Ant does?
mf> YES!!!!!
mf> From the same JVM without spawning a new virtual machine and waiting for
mf> exec.wait()? yeah that would be great!!!
mf> Do you have a diff, do you know how to do it?
I have easily found the code snippet in
org.apache.tools.ant.taskdefs.Javac.doClassicCompile()
Now the next question:
where should EJBoss find sun.tools.javac.Main class?
Variants of answer:
1) to find tools.jar automatically in $(java.home)/../lib,
if a full JDK is installed on a machine. What if only JRE is installed?
2) to intoduce new configuration parameter, containing a full path to
tools.jar (or javac.jar)
3) to include javac.jar (or tools.jar) to EJBoss distribution for jdk1.2.2
What do you think?
Best regards,
Oleg Nitz
Project Manager
Integrated Banking Information Systems
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]