You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Deepak Rao <de...@yasutech.com> on 2006/06/27 11:24:41 UTC

How to starta DB using ANT script

  Hi,
Can we perform these tasks using an ANT build script.
 - start a DataBase (say mySql)
 - run a particular DB script on it.
 - export some particular data(projects) into it.
 - and then close down.

Hope some one has an idea.



Thanks and Regards
Deepak Rao

Re: How to starta DB using ANT script

Posted by Ben Stringer <be...@burbong.com>.
On Tue, 2006-06-27 at 14:54 +0530, Deepak Rao wrote:
>   Hi,
> Can we perform these tasks using an ANT build script.
>  - start a DataBase (say mySql)
>  - run a particular DB script on it.
>  - export some particular data(projects) into it.
>  - and then close down.


Hi Deepak,

As long as you are writing for a single platform, just use the <exec>
task. I _strongly_ recommend you set "failonerror" to true - which is
not the default.

Cheers, Ben

> 
> Hope some one has an idea.
> 
> 
> 
> Thanks and Regards
> Deepak Rao


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: How to starta DB using ANT script

Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Yes.

http://ant.apache.org/manual/index.html

-Rob A 

> -----Original Message-----
> From: Deepak Rao [mailto:deepak@yasutech.com] 
> Sent: Tuesday, June 27, 2006 2:25 AM
> To: Ant Users List
> Subject: How to starta DB using ANT script
> 
>   Hi,
> Can we perform these tasks using an ANT build script.
>  - start a DataBase (say mySql)
>  - run a particular DB script on it.
>  - export some particular data(projects) into it.
>  - and then close down.
> 
> Hope some one has an idea.
> 
> 
> 
> Thanks and Regards
> Deepak Rao
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org