This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Regarding build and deploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Regarding build and deploy" Watch "Regarding build and deploy" New topic

Regarding build and deploy

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144

Could you please tell me how to build and deploy a project using hudson with ant in glassfish server in every commit in svn.

Santhosh Kumar V.K
Peter Johnson

Joined: May 14, 2008
Posts: 5812

Which part of this series of steps are you having difficulty with?

To trigger a build in Hudson each time a Subversion commit is made, you will need a post-commit hook. A Google search will yield numerous blog entries on this: hudson subversion post-commit hook

I assume you know how to deploy an app to Glassfish. Based on that knowledge, you should be able to write an Ant task to do the same. And that task should be part of the Ant script that Hudosn runs when it gets called by the post-commit trigger.

JBoss In Action
jQuery in Action, 2nd edition
subject: Regarding build and deploy
Similar Threads
How to deploy code from cleasecase RAD
How to deploy JSP/Servlet in Jboss3.2
regular website updation. Is there any easy way ?
What is the meaning of "deploying a program"?
difference between Built and Deployee