ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: target timeout
Date Mon, 05 Feb 2007 08:51:23 GMT
Hi, Martin


sorry for my late response, had been out of office ...

/*
my usages looks like the following:

  <target name="buildIt >
    <limit hours="1" failonerror="true">
       <antcall target="a" />
       <antcall target="b" />
       <antcall target="c" />
       <antcall target="d" />
       <antcall target="e" />
       <antcall target="f" />
    </limit>
  </target>


<target name="e" depends="d"></target>

In the above, d seems to get called twice.
*/

that looks logical as e depends on d and afterwards you're
calling target d again

/*
If I do:
         <limit hours="1" failonerror="true">
            <target name="buildIt2" >
            </target>
         </limit>

That gives me an error:

Could not create task or typeof type: target.

Ant could not find the task or a class this task relies upon.
*/

my example with

<limit ...>

<target ...>

</limit>

was wrong, of course i always use tasks NOT targets inside
the limit scope, sorry for directing you on the wrong way !
the only way to get a target into the limit scope, you have to go
via antcall.

according to the antcontrib manual =

"The Limit task is a task container (that is, it holds other tasks) ...
"

it's a container for tasks, but NOT for targets, that's the reason for
the
errormessage =

Could not create task or typeof type: target.

Ant could not find the task or a class this task relies upon.

Sorry, my fault


Regards, Gilbert

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


Mime
View raw message