You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/03/11 07:34:55 UTC

DO NOT REPLY [Bug 33956] New: - Ant target using both 'depends' and 'if'

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33956>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33956

           Summary: Ant target using both 'depends' and 'if'
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: aps_jobs_aps@yahoo.com


Not sure if this is a bug or intended behaviour but its causing me some 
trouble. I have a target defined as below:
<target name="something" if="some.prop" depends="someothertarget" />

Now, it appears that the depends target gets executed irrespective of 
whether 'some.prop' is present or not. I was expecting that if 'some.prop' is 
not available, then target 'something' would not get executed and since it 
depends on 'someothertarget', even 'someothertarget' should not get executed. 
But this isnt the case.

Why should a dependancy get executed if the main target is not going to be 
executed anyways due to the absence of the property?
Or am I missing something?

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

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