Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant sql task in different jvm/process

 
Gaurav Kr. Arora
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to ant and before sending mail to this list I explored the issue on google but didn't get any satisfactory results.

In one of my project, I require to run the below sql task in a different jvm or a different process.



Actually in my build.xml file, I call a junit test using junit task and in that task I use fork=yes so that it runs in a different jvm.

But before running the junit task I need to run the sql task, but somehow it happens that both sql task and junit tasks are running in same jvm which I don't want.

Could you please help me in making sure that the sql task which I run should run in a separate jvm / process ? Can we specify fork=yes or some other attribute to do this?

Thanks!
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no fork option for the sql task. If you really want the sql statement to run is a separate process, some of your options are:

a) use the <exec> task to run Oracle's command line sql tool, passing it the sql file

b) use the <java> task to run another copy of Ant to run the sql task

There are probably other variations. I would go with option a.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic