You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2007/02/05 09:51:23 UTC
RE: target timeout
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