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

Ant + HSQLDB - Seperate Process

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi men,

This a task to create, start , launch, configure and stop an HSQLDB database. I hope this help.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic