Eclipse highlights everything as an error when building with ant
I am using ant to do builds and outputting to the same file that eclipse outputs .class files into so that I can test easily using the eclipse console. However, once I do this eclipse says pretty much every line of my code is an error as it cannot 'resolve x to a type'. Does anyone know of a way t开发者_开发百科o fix this? Refreshing the project doesn't seem to help..
Do a refresh followed by clean build in eclipse. If it doesn't take the first time, do those steps once more.
I would not recommend having Eclipse and ant output to the same directory.
精彩评论