ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: EasyAnt <use>/<extends> vs <import>
Date Thu, 13 Nov 2008 10:41:27 GMT
On 2008-11-13, Jean-Louis BOUDART <> wrote:

> Refering to the comment
> // In an imported file (and not completely ignoring the project tag
> *OR*having a preconfigured prefix)
> this test should be like this instead
> if (!isInIncludeMode && !isPhase && (context.isIgnoringProjectTag()
>                 || (prefix = getTargetPrefix(context)) != null)) {


!isInIncludeMode means "either the main build file or <import>ing a

context.isIgnoringProjectTag() means "either <include>ing or

so anding those two is the "In an imported file" part of the comment

(prefix = getTargetPrefix(context)) != null covers both branches of
the OR in "not completely ignoring the project tag OR having a
preconfigured prefix" since it will either return the configured
prefix or the <project>'s name attribute.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message