Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
RE: Setting child JUNIT task 's timeout attribute when using SUBAN
   T task

RE: Setting child JUNIT task 's timeout attribute when using SUBAN
   T task

2005-05-05       - By Mathews, John

That was a typo it should be "." instead of "*" like so:

<subant target="test">
  <fileset dir="." includes="*/build.xml"/>
                 ^ I don't think you can have a glob pattern here!?
</subant>

But the point is: is there a way to set the attribute of a child junit task
from the parent?

Thanks
John

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@(protected)]
Sent: Thursday, May 05, 2005 6:56 AM
To: Ant Users List
Subject: RE: Setting child JUNIT task's timeout attribute when using SUBANT
task

> From: John.Mathews@(protected) [mailto:John.Mathews@(protected)]
> <subant target="test">
>   <fileset dir="*" includes="*/build.xml"/>
                 ^ I don't think you can have a glob pattern here!?
> </subant>
>
> QUESTION:
> Without changing the child build.xml, is there a way to set the
timeout
> attribute of the JUNIT task from the SUBANT task of the parent?

Can't you define a property in the subbuild for the timeout value, which
default to something, and pass in an override in <subant> with a nested
<property>? --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.