ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <>
Subject Re: topoSort(String[]) produces duplicated targets
Date Wed, 07 Jul 2004 18:46:52 GMT
Sorry, I made a wrong conclusion. The result contained extra targets 
that should not be executed at all, that is why the result size was 
wrong. Now it creates some problems - in order to make "a,b" executed I 
still need an extra target named "a,b" (or similar), because the code 
uses topoSort() result trimming using the target name.

- Alexey.

Alexey N. Solofnenko wrote:

> Hello,
>  I have a patch (Bug 21421) that allows to run several targets without 
> rerunning their dependencies. Now with new <ant> is supposed to do the 
> same and there is a new topoSort() with array of targets. I tried to 
> use it, but it is not much better that previous implementation - all 
> the common dependencies are re-executed. This is an example:
>  <target name="t1">
>    <echo>t1</echo>
>  </target>
>  <target name="t2">
>    <echo>t2</echo>
>  </target>
>  <target name="t3" depends="t1,t2">
>    <echo>t3</echo>
>  </target>
>  <target name="t4" depends="t1,t2">
>    <echo>t4</echo>
>  </target>
> topoSort(new String["t3", "t4"], targets) returns ("t1", "t2", "t3", 
> "t1", "t2", "t4") instead of ("t1", "t2", "t3", "t4"). I think it is 
> important not to run the same targets over and over again. Is it an 
> expected behaviour?
> - Alexey.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message