I have an ant file that does the following:
The initial problem with your set up is that you've got build.properties
and build-defaults.properties
reversed.
Ant Properties are set once and then can never be overridden. That's why setting any property on the command line via a -Dproperty=value
will always override anything you've set in the file; the property is set and then nothing can override it.
So the way you want this set up is:
This way: