* the good: for the above case it works perfectly* the bad: for another case it does not

For the above case it works as the next target (compile-schemas) is defined in the same file as the target called via subant (doing-precompilation).But: The target itself is not shown and I have a case where the next target is a target imported from somewhere else:

Of course, now I have a way around this by e.g. inserting an intermediary target in the subant's build.xml, which would be fine for me for now – but having more information about the subant-target actually executed (e.g. folder, properties) would still be nice

So, this is of course a very simplified version of what we are doing.Essentially, the sub-builds (Delegate1 and Delegate2) just set the property name and have a single target doSomething which depends on target global.target.doSomething imported from another file (build-project.xml). This target just echos the contents of property name.

In my case, the global target of course does something more time consuming (e.g. compile some xsd depending on properties set in the sub-build via xmlbeans).

Looking for echo or global.target.doSomething I cannot determine via which sub-build it has been called: