Don't forget that ant only allows you set a property once and then you may not override it. So your initial instinct with a system that allows a new value read in to override an old one (such as Maven itself when it reads its own property files) is to put the user level file last, with ant, you should put it first, since once the property is set, it stays set. Ant will read the user property file, if prop 'x' is set there, then any value for it in subsequent files will not override it.


[EMAIL PROTECTED] wrote:


Anyone??




Extranet Nick MINUTELLO/UK/EUROPE/[EMAIL PROTECTED] - 09/06/2003 22:32


Please respond to [EMAIL PROTECTED] To: dev

cc:


Subject: Properties ordering in build-bootstrap.xml ?




Hi,

I have a question regarding the initialisation of properties in the
build-bootstrap.xml

<property file="${user.home}/build.properties"/>
<property file="${basedir}/project.properties"/>
<property file="${basedir}/build-bootstrap.properties"/>
<property environment="env"/>
<property name="maven.home" value="${env.MAVEN_HOME}"/>

Should the ${user.home}/build.properties come last - as in the case of
properties initialisation in a regular maven build?

I want to over-ride some defaults - like maven.repo.remote.... and it seems
that ${user.home}/build.properties would be the logical place for this,
rather than having to patch the src.
Is there specific reasoning behind the current order?

Cheers,
Nick





This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.

---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]










This message and any attachments (the "message") is
intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified.


---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to