On Oct 28, 2009, at 8:37 PM, Paul Hoadley wrote:

Hi Susanne,

On 29/10/2009, at 12:11 AM, Susanne Schneider wrote:

I've been trapped by this too. In contrast to normal programming behaviour ant works the other way round: the first setting a property will win. Once a property is set it cannot change to anything else! Properties are no variables, see the ant manual for this.

Thanks for the reply. If I ever knew that about Ant, I had forgotten it.

In any case, the bit that surprised me was that all the Resources/ Properties files were being read by Ant at build-time at all. I suppose I had always assumed they were strictly run-time properties, but here they are being read at build-time as well? If that's really what I was seeing, maybe I'm just the only person on the list surprised by it.

I know that Wonder does this at runtime. I am surprised that Ant/ WOLips is read them. But too lazy to test it. :-)


Chuck



Am I just imagining it, or are the properties in the framework's Resources/ Properties file being imported by Ant as build properties, and are they overriding the definitions in the app's build.properties?

So the second part of that question is answered by Susanne: yes, because with Ant it's "first definition wins".


--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [email protected]

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to