Shutdown Target for ANT to Shutdown HSSQLDB

I'm trying to create a target in my ANT XML file that will shutdown a HSQLDB.  I'm new at ANT, so any help you could give me would be appreciated.  I'm attaching what I have so far, if you could just let me know if this will work or not it would be a huge help..  Thank you.
classpath=${hjar} driver=org.hsqldb.jdbcDriver url=jdbc:hsqldb:hsql://localhost:${hport}/${halias} userid=sa password=" print=yes

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dejan PažinHead of SW DevelopmentCommented:

Here is the manual and examples on how to use ant sql task:
rebelsurf86Author Commented:
Thanks, I'll check it out.  Do you know if the tag above will work correctly?
Dejan PažinHead of SW DevelopmentCommented:

The code you posted is not written in ant sysntax. It should look something like the code below:



Sql will work that way, I never tried shutdown though. You'll have to check it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rebelsurf86Author Commented:
Below is the command that worked.  I did not have the sysntax correct, as you stated.  I also had to modify some of your code, as I'm not exactly sure what the boxes are for (unless this was some sort of issue with a cut and paste).  Anyway, thanks for the help.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.