Creating task/macro wrappers

2019-02-23 Thread Isaac Jurado
Hello Ant users, I'm trying to create a wrapper over . The idea is to have my macro expose the same attributes that supports, with as close semantics as possible. Unfortunately, I have no idea how to reproduce the presence/absence behavior. For instance, accepts a "timeout" integer attribute

Re: Creating task/macro wrappers

2019-02-23 Thread Matt Benson
Look into the task with conditionally executed (using if/unless namespaces, antcontrib , or similar) blocks. HTH, Matt On Sat, Feb 23, 2019, 3:37 AM Isaac Jurado wrote: > Hello Ant users, > > I'm trying to create a wrapper over . The idea is > to have my macro expose the same attributes tha

Re: Creating task/macro wrappers

2019-02-23 Thread Al Le
You could write a script, e.g. in JavaScript. There, you would create a new instance of the testng task (using the global 'project' object), then set all the necessary attributes and nested elements of the task (don't forget to set the owning target), and, finally, call its 'execute' method.