Originally posted by Shashank Tilwalli:
Hi,
I currently using runtime.exec() only. The problem with this is that, it acts like an external process & spawns another thread. I wanted to invoke ant as a normal java class. But when I do that, I don't get ant's error & input. Is there any way of doing this.
Thanks
Shashank
OK, if you want to run Ant inside the same JVM as the spawning program, as I said, there should be some stuff in the Ant docs on how to do that - I'm just too lazy to track them down. Part of that documentation includes how to jack in callbacks to catch the output from Ant.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.