eclipse ant integration and code formatting
I have configured Eclipse to use ant for doing the builds by setting the builders in project properties to point to the ant build script. The build goes thru fine. However in my eclipse project I have not imported the required jars as a part of the project se开发者_StackOverflowttings. All of this is done in ant's build.xml.
So in the java files, I get red squiglly lines for all the import packages which eclipse is not able to resolve.
How do I make these squiglly lines go away? One way is to import the required jars in eclipse, but then I am maintaining the project at two places, ant build.xml and eclipse
go to Project Properties/Build Path and enter the jars you rely on there.
You could use Ivy to manage your dependencies. If you configure it properly, you will only be defining the jars in one place but both Eclipse and Ant will be able to see them. The eclipse plug-in is IvyDE.
精彩评论