ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: EasyAnt <use>/<extends> vs <import>
Date Thu, 13 Nov 2008 10:41:27 GMT
On 2008-11-13, Jean-Louis BOUDART <jeanlouis.boudart@gmail.com> 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)) {

No.

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

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

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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message