Can't overwrite reference with ant task using nested reference element?

In fact it seems to have the right behavior now, but I can't explain what I did wrong the first time.

Up vote 0 down vote favorite share g+ share fb share tw.

I have a main build file with a path declaration Then I call a task in sub file with in subbuild. Xml I have: In my understanding the call to with a nested should overwrite path.app. Src in subbuild.xml.

But I get an error like: subbuild. Xml:xx: Reference path.app. Src not found.

Am I doing something wrong? Is it a bug in ant? I'm using Apache Ant version 1.7.0 compiled on December 13 2006 Thanks, Lionel ant link|improve this question asked Jul 14 '09 at 15:53Lionel584.

In fact it seems to have the right behavior now, but I can't explain what I did wrong the first time. Here is the code sample: build. Xml subbuild.

Xml p. Localtotargetpathid: ${p. Localtotargetpathid} p.

Globalpathid: ${p. Globalpathid} here is the console log: $ ant Buildfile: build. Xml build: ant Parent project doesn't contain any reference 'mainpath' test: echo p.

Localtotargetpathid: d:\my\target\location echo p. Globalpathid: d:\my\main\path BUILD SUCCESSFUL Total time: 0 seconds we can see globalpathid has been override but not localtotargetpathid, which is the behvior mentioned in the spec. Still I can't explain the first message ...

I meant the first message: ant Parent project doesn't contain any reference 'mainpath' – Lionel Jul 15 '09 at 6:00.

I think you have an incomplete declaration here in the subbuild file of refid path.app.src. It should not have the 2nd nested path element () since there is no location associated with it. The way you wrote the main build file to overwrite no reference //other than// this refid looks good to me.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions