It seems that the task must be executed before.
If you add a >depends="sub"< on the main target, that works.
So the question is: when are id's stored?
The parsing is done via ProjectHelper's and their SAX-Parser-Handlers.
On the first view I would say, that the id is stored while parsing - so befo
I placed some system-outs in the parsing code.
The parsing is done by ProjectHelper2. Id is stored via AntXMLContext to the
"UnknownElement".
C:\projekte\apache-ant-svn\sandbox\script>ant
Buildfile: C:\projekte\apache-ant-svn\sandbox\script\build.xml
PH2.ElemeentHandler.onStartElement tag=echo
The AntXMLContext stores the id-object pair in the project instance via
public void configureId(Object element, Attributes attr) {
String id = attr.getValue("id");
if (id != null) {
project.addIdReference(id, element);
}
}
In the Projct class this is st