Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development 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: 146

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: 5850

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
I agree. Here's the link:
subject: Regarding build and deploy