ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <>
Subject Re: Expose nested tasks in Parallel and Sequential
Date Wed, 07 Nov 2001 23:27:50 GMT
On Thu, 8 Nov 2001 09:54:00 +1100, "Conor MacNeill" <> wrote:

> Can you provide some motivation for doing this.

Yes, Conor, check-out Anteater, a testing framework based on Ant:

Here's a sample test case written in Anteater:

  <target name="content-check" depends="init">
    <http debug="1" description="Comparison of streamed file with actual one">
        <listener path="/good.html">
            <method value="GET"/>
            <sendResponse href="test/responses/good.html"

          <sleep seconds="1"/>
          <httpRequest path="/good.html">
              <responseCode value="301"/>

The httpRequest element needs to have access to some of the context,
which is maintained by the <http> element. The Java class
corresponding to <http> simply passes that information to its
children, which in turn do it for their children and so on. However
this info cannot be passed down when a <parallel> or <sequential> is
encountered. What I do is to collect that information from the
<sequential> or <parallel> elements and do it in their enclosing

You can take a look at the source code to see how it works.

Hope this helps,
Ovidiu Predescu <> (inside HP's firewall only) (my SourceForge page) (GNU, Emacs, other stuff)

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

View raw message