ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <>
Subject Re: hooks/post-commit not being called when commiting with Ant.
Date Mon, 28 Jul 2008 22:47:11 GMT
Commits are done via the Server, so the post-commit script gets called
no matter what client you're using. That is, if you're not using the
file:// URL for Subversion:


svn cp file://project/trunk file://project/tags/REL-1.0


svn cp http://server/repos/project/trunk
svn cp svn://project/trunk svn://project/tags/REL-1.0

I would recommend that you use "print" statements throughout your hook
to print to STDERR, and then purposely fail the hook to see if you can
see the output. That will help you determine whether or not the hook
is actually firing.

Copy your repository, and startup another server instance, and use
that as a test bed. I have a special "xdev" repository defined in
Apache for this type of experimenting.

David Weintraub

On Mon, Jul 28, 2008 at 5:43 PM, mindspin311 <> wrote:
> What I'm doing is tagging a build in an ant script using a user 'build'. This
> is an actual user, and not something like apache or someone without a shell
> account.
> I've got automated builds triggered using Atlassian Bamboo when done from
> the command line or doing a commit in a third party app like Eclipse. This
> works fine.
> The thing is, when I do an automated tag in my build script using <svn
> javahl=${javahl}> ...... </svn>, it doesn't seem to get read in the
> post-commit script.
> It seems to be either a problem with post-commit not being called when a tag
> is done, or it not being called when committing in ant.
> Anyone have any ideas?
> --
> View this message in context:
> Sent from the Ant - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message