Gooner
Gooner

Reputation: 1398

Automating with Ant on a server

I have a ant file on the server-side, and from the client-side I need to execute it on the server, how can this be done?

Upvotes: 2

Views: 115

Answers (3)

McDowell
McDowell

Reputation: 108859

Perhaps overkill for your situation, but you might want to look at Hudson. It is a Java build server with a web interface. It is relatively easy to set up and configure projects, though you will need to run a servlet container on your server (such as Apache Tomcat).

Upvotes: 1

Mads Hansen
Mads Hansen

Reputation: 66714

You could execute the ANT build script and targets from a servlet.

This article explains how: http://onjava.com/pub/a/onjava/2002/07/24/antauto.html?page=1

Upvotes: 1

Mike Baranczak
Mike Baranczak

Reputation: 8374

SSH should work on any Unix system:

ssh [email protected] ant -f /home/gooner/build.xml

Do not use RSH - it's obsolete, and it's been replaced with the more secure SSH.

Upvotes: 2

Related Questions