ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Vishnoi <>
Subject Re: AW: getLocation of imported target in Ant 1.6.2
Date Mon, 12 Jun 2006 12:25:52 GMT
I'll look into updating, but that can be a painfully long process, as it 
would require a long certification process.

I don't mind writing a helper utility method that will do the needful 
for me. Can you point me to the source code where the fix was made in 1.6.5

I'm thing of one workaround, which will involve the following:

Since I've to do the processing on ant files that I've in a path structure.

- I'll Iterate all the ant files in the path
- In each ant file, for each target construct a map of target to location
   - find import task in ant file and load it and update above map. If 
target is already present, use projectname.targetname
   - do above step recursively. (Add some check for circular imports, 
other we will go into infinite loop)

After above, for each ant file in the path, I'll have Map ( ant file 
location,     Map (name of target, location of target)).

Do above seem like a workable solution?


--Vishal wrote:

>>In Ant 1.6.2, the location of an imported target 
>>(target.getLocation) is not set. Is there some workaround that 
>>I can use to get the location.
>>I verified that above problem is fixed in 1.6.5, but I need to 
>>get this working in 1.6.2
>So it seems like a bug which was fixed. 
>We dont backport these fixes if we doing a new release and I advise to
>Ant to 1.6.5 (or wait a little bit for 1.7).
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message