When I set the cascade flag to flase on the call task,
the called target it self is not re-executed.
<project default="build">
<target name="init" />
<target name="compile" depends="init" />
<target name="build">
<call target="compile" cascade="false" />
<call target="compile" cascade="false" />
</target>
</project>
Expected behavior:
build:
init:
compile:
compile:
Actual behavior:
build:
init:
compile:
I'm using the nightly from 2006-03-08
I believe it's a problem in Project.cs
public void Execute(string targetName, bool
forceDependencies)
lines 884 and 885
if (forceDependencies || !currentTarget.Executed) {
currentTarget.Execute();
}
currentTarget will eventually end up being the called
target, and its execution state is checked just like if
its another of the depended targets.
Gert Driesen
Tasks
0.85
Public
|
Date: 2007-03-11 18:00
|
|
Date: 2006-05-16 12:50 Logged In: YES |
|
Date: 2006-05-16 06:04 Logged In: YES |
|
Date: 2006-05-01 18:21 Logged In: YES |
|
Date: 2006-05-01 17:48 Logged In: YES |
|
Date: 2006-05-01 14:32 Logged In: YES |
|
Date: 2006-05-01 14:16 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| resolution_id | Postponed | 2007-03-11 18:00 | drieseng |
| status_id | Open | 2007-03-11 18:00 | drieseng |
| close_date | - | 2007-03-11 18:00 | drieseng |
| priority | 5 | 2006-05-16 12:58 | garyfx |
| resolution_id | None | 2006-05-16 12:50 | garyfx |
| close_date | 2006-05-01 14:16 | 2006-05-16 06:04 | mike_at_rubicon |
| status_id | Closed | 2006-05-16 06:04 | mike_at_rubicon |
| resolution_id | Invalid | 2006-05-16 06:04 | mike_at_rubicon |
| close_date | - | 2006-05-01 14:16 | drieseng |
| assigned_to | nobody | 2006-05-01 14:16 | drieseng |
| resolution_id | None | 2006-05-01 14:16 | drieseng |
| status_id | Open | 2006-05-01 14:16 | drieseng |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use