• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant + HSQLDB - Seperate Process

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi men,

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

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic