[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Sending commit e-mails using Ant

From: François Beausoleil <fbeausoleil_at_ftml.net>
Date: 2004-10-08 21:08:50 CEST

R Smith wrote:
> Hi. I would like to send e-mails after commits in Subversion, but my
> manager doesn't want me to use a Perl script such as "commit-email.pl."
> Instead, he wants me to use Apache Ant. Does anyone know if there's a
> copy of some good code out there that does this? If not, can anyone
> give me some specific pointers about trying to accomplish this task with
> Ant, or should it all be fairly straightforward? Thanks for any help.

It should be fairly straightforward. Your post-commit hook will need to
call ant and send it's parameters to Ant using Ant properties:
ant -Dsvn.author=$1 -Dsvn.newrev=$2

(NOTE: Not the real parameters - just examples)

Then, from Ant, you'll call svnlook to examine the changes, and do
everything you'll need.

Hope that helps !

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 8 21:13:05 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.