ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46780] New: <target>'s condition check is wrong
Date Fri, 27 Feb 2009 21:11:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46780

           Summary: <target>'s condition check is wrong
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: alekseyig@hotmail.com
                CC: alekseyig@hotmail.com


if i have the following:
<target name='first' depends='second' if='some.condition.property'>
  <echo> in first </echo>
</target>

<target name='second'>
  <echo> in second </echo>
</target>

ant ignores the 'some.condition.property' check for target 'first' and
__always__ executes 'second' target and only after that execution it checks
condition property and based on it executes or not execute 'first' target.

I believe it is wrong, condition should define if execute 'first' target and
all its dependencies or not.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message