Community
Participate
Working Groups
Build Identifier: 20100218-1602 When exporting an ant buildfile from a project A that refers to another project B the resulting ant file calls project B's ant file with incorrect directory path in the antfile-attribute. The solution to the repro-case below is to change the following in "<whatever>\test\A\build.xml": <ant antfile="${B.location}/build.xml" dir="${B.location}" ...> ...to: <ant antfile="build.xml" dir="${B.location}" ...> Reproducible: Always Steps to Reproduce: 1. Create a project A in a folder "<whatever>\test\" (that is not a child-folder of the workspace). 2. Create a project B in "<whatever>\test\childfolder\". 3. Click File->Export... (select "General\Ant Buildfiles")->Next (select both A and B)->Finish. 4. Run "ant" inside "<whatever>\test\A\"-folder. 5. Notice the FileNotFoundException that occur because it tries to run ant on "<whatever>\test\childfolder\childfolder\B\build.xml".
I couldn't reproduce this with I20101005-0800. Jay, can you also try? Maybe i missed out something.
(In reply to comment #1) > I couldn't reproduce this with I20101005-0800. Jay, can you also try? Maybe i > missed out something. I am not able to reproduce either with eclipse 3.6 (build ID I20100608-0911) Johan, can you please try with one of the newer builds?
This is what the generated build file contains: <ant antfile="build.xml" dir="${Project_B.location}" inheritAll="false" target="clean"/>
Aha, I didn't know I needed to install Helios to get the latest version. There is no issue there as you say. Sorry about the false alarm and thanks for the help!
Thanks for the confirmation. Closing as WORKSFORME.
Verified for 3.7 M3. Verified by the reporter also.