| Author |
Ant + HSQLDB - Seperate Process
|
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
I am starting HSQLDB via ant using the following: This works however if I start it in IDEA the process just sits so when writing some tasks where I need the DB to start, I do some work, and then I shut it down, the process halts after HSQLDB starts. The rest of the dependent tasks never execute until I shut HSQLDB down. Notice I am already using fork = "true". I'm wondering if there is somethinge else I can do so that the process doesn't hold up execution of all the other tasks. Maybe this isn't an Ant problem?
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8142
|
|
|
The "fork" will just create a new JVM for the DB server. I think you will also have to set the "spawn" to true so that it will create a new process.
|
[My Blog] [JavaRanch Journal]
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
Originally posted by Jaikiran Pai: The "fork" will just create a new JVM for the DB server. I think you will also have to set the "spawn" to true so that it will create a new process.
Spawn won't work because of the child elements of the java task. Already tried it. Thanks.
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
Hi Gregg, I'm curious, have you tried running this outside of IDEA? I've been tried up by Eclipse's handling of ANT forks in the past...
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
Originally posted by Martijn Verburg: Hi Gregg, I'm curious, have you tried running this outside of IDEA? I've been tried up by Eclipse's handling of ANT forks in the past...
Yes. It still blocks the ant process from completing.
|
 |
Fadjer One
Greenhorn
Joined: Mar 14, 2006
Posts: 10
|
|
Hi men,
This a task to create, start , launch, configure and stop an HSQLDB database. I hope this help.
|
 |
 |
|
|
subject: Ant + HSQLDB - Seperate Process
|
|
|