The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281

posted Sep 08, 2006 04:38:00

0

my bat launches an hsqldb server instance; what i want is the ability to manually close the server if i wish so (by closing the dos window); as i have it now, even after closing the dos window server keeps alive

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281

posted Sep 08, 2006 07:34:00

0

let me try to put it in another way: when i run junit4 task (which depends on run bat file), it runs a bat file; since this results in getting a db server running, it stands alive, so the junit task itself never gets an oportunity to execute. so, i'd like my task to launch the bat file in another dos window, so that my tests could get a chance to run here's how it looks like:

Originally posted by Jeanne Boyarsky: Miguel, Take a look at the spawn attribute of the exec task. Note that you will probably also want to use the waitFor task to allow the server to start up before running your integrationt tests.

Bingo! i didnt feel the need of waitFor because first thing to happen in my task is precisely the server setup thanks a lot, Jeanne!

PS please help me because when i try to post my build's relevant part i get a persistent error message stating i've to change '<' with &l t;, but even doing it i cant post

Originally posted by miguel lisboa: PS please help me because when i try to post my build's relevant part i get a persistent error message stating i've to change '<' with &l t;, but even doing it i cant post