Error: targets do not exist in the project

I work with our code base to solve some dependency problems.

However, whenever I click on the build.xml file in any package, I get

"Target XXX does not exist in the project" error. 

Interestingly, the build.xml file does not show errors if I leave them untouched, but if I click to open any of them, I am stuck with these errors. Here are some examples:

  <target name="javadoc" depends="compile-jar"> <target name="release" depends="standard-release" description="PackageBuilder entry point"/> 

I get errors for all purposes. Unfortunately, I cannot post a lot of code on the forum, but I would appreciate any suggestions to take me in the right direction. If there is something that I have not talked about, let me know and I can add it.

Also, I don’t understand very well how the whole build.xml and other ANT file works. I know that at http://ant.apache.org there is good dcoumentation, but I need some kind of blog / book / diagram / flowchart that explains how this works and how build-dependent is allowed in Java more easily before documents begin to make sense. Any help?

Thanks.

+7
source share
1 answer

Eclipse only checks the build.xml file when you open them no earlier (for example, class files).

I would suggest that the standard version and compilation are not defined in the specified assembly file, but in some other file?

In ANT, you can import other assembly files and reuse targets from there:

See: http://ant.apache.org/manual/Tasks/import.html

So maybe Eclipse does not find the imported file or you missed the import definition.

+1
source

All Articles