Override ant properties in a build

I'd like to override ant properties in a build
1. Is it possible to do this? How?
2. Is it possible to specify the list of property overrides in a property file? If so, where should this file be located and are there additional steps to make sure the file is picked up?

1 comment
Comment actions Permalink


Sorry for the delay in replying.

If you need to pass properties into your Ant script from the TeamCity, this is easy:
Just add a build configuration property on the build configuration settings page "Properties and environment variables". Any system property that you add will be passed into your Ant script.

You can read more on the properties in our on-line documentation at http://www.jetbrains.net/confluence/x/CHM

Particularly, if you place a properties file named "teamcity.default.properties" in the root of your checkout directory, the properties defined in it will be read automatically.

But please note that properties read form teamcity.default.properties have the lowest priority.

If you can't achieve your task with the current features, please describe your case in more detail.

Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
"Develop with pleasure!"


Please sign in to leave a comment.