This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant + HSQLDB - Seperate Process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant + HSQLDB - Seperate Process" Watch "Ant + HSQLDB - Seperate Process" New topic
Author

Ant + HSQLDB - Seperate Process

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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?


GenRocket - Experts at Building Test Data
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9961
    
163

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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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: 3274
    
    5

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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant + HSQLDB - Seperate Process
 
Similar Threads
uPortal 3.2.4 Build Failed
Build Failed
How to stop the SimpleHTTPServer server ?
Using Hibernate, but tables are not saved
Not able to display starting jsp page index.jsp