Custom build with additional Ant command line parameters

I'd like to be able to specify additional parameters to my ant build runners through the custom build dialog.  I thought this would be possible with the new dialog, but that doesn't seem to be the case (the Ant runner seems to ignore the ANT_ARGS environment variable).  Is there another way to do this?

I've also been looking a little at the plugins page and it looks like the groovy plugin may help with this, but, i'm hoping someone can confirm.

Thanks,
ray

0
3 comments

If you need to provide additional parameters to Ant itself, you can add a reference to a property in the corresponding field of the Ant runner settings:
Additional Ant command line parameters: %system.ant_args%

Then you will need to define default value for "ant_args" property on the Properties and environment variables screen. After that in the custom run dialog you will be able to redefine this value.

0
Avatar
Permanently deleted user

Thanks Pavel... actually hadn't thought about that workaround.

However, I've noticed that system properties actually get set as ant properties (without the system. prefix) so just setting the system properties works for us.  I should note though, for others who might find this useful, that if the additional parameters set on the runner config page will take precedence over setting the property in the custom build dialog.

ray

0

system & env prefixes are for TeamCity only. When you use reference, i.e. %...% TeamCity must know what kind of parameter is required.

0

Please sign in to leave a comment.