Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Common targets are not recognized by Eclipse

I have added all common targets like (init, clean, getivy, etc) in ./common/common.xml and added:

<import file="${basedir}/common/common.xml"/>

in build.xml.

When I build the project, its working fine. But, When I open build.xml in Eclipse IDE, I see some "Red" marks underneath targets which have a dependency targets that are defined in common.xml. And when I do mouse over those Red marked targets, I see a message saying that:

Target init does not exist in this project.

To clarify, the common folder is added through svn:externals. Does this need extra configurations in Eclipse?

like image 746
Angrezy Avatar asked Nov 16 '09 15:11

Angrezy


1 Answers

I have Eclipse Indigo Service Release 1 Build id: 20110916-0149 with ant 1.8.2 and the described problem with import seems to be fixed as Steve already mentioned. But the problem still exists for include and no answer seems to solve it for me. I searched the bugtracker shortly but don't have the time to be sure and test in the latest eclipse version and post a bug in the bugtracker.

Edit: I had the problem with import again after refactoring the folder structure in the project and moving the buildfile. Although I started "Validate" on the project, the validation cached the old location and did'nt realize the move. I had to close the editor and the warning disappeared.

like image 153
jan Avatar answered Sep 26 '22 14:09

jan