Why are ant scripts on teamcity agents not executable?

I'm referring to the bundled copy of ant with the agent, in plugins/ant.

We have a build configuration that tries to call this ant from a script (we need to call ant via a coverity executable).  Rather than installing another copy of ant on all our build agents, we thought we could use the ant that comes with teamcity.  But it doesn't allow execution, even to its owner.

I know i can't expect this to be changed (since it's an internal component of teamcity, and we're not using it for its intended use), but just curious why it is this way?

2 comments
Comment actions Permalink

Ant is bundled using zip archive which does not have executable bits notion. We could change it, but so far it's not a high priority problem. There is an easy workaround, just use 'sh', i.e do not start Ant using ant script, instead use:
/bin/sh ant

0
Comment actions Permalink

Oh yeah, that is pretty easy.  Thanks.

0

Please sign in to leave a comment.