jACOB
jACOB

Reputation: 123

To run ant commands through batch file

Please tell me how to call a command "ant deploy-hibernate" through batch file located in c: and i want to run the above command on trunk folder located in d: drive.The pupose is i want to run this command every time before i call a start-up for tomcat.Thanks in advance

Upvotes: 0

Views: 607

Answers (2)

JB Nizet
JB Nizet

Reputation: 692231

cd /d d:\trunk
call c:\path\to\ant\bin\ant.bat deploy-hibernate

Upvotes: 1

adarshr
adarshr

Reputation: 62613

You should add Ant\bin to your PATH environment variable.

Upvotes: 0

Related Questions