1

通常我们在使用 Eclipse IDE 时,它可以帮助我们处理相关的函数/变量,自动检查编译错误。

现在我想用 Ant 来管理编译和部署过程。在 build.xml 中添加导入指令后,我可以使用 Ant 构建器编译和运行它。但问题是,在编写代码时,Eclipse 编辑器无法给出代码建议,并且总是抱怨我没有导入一些在 build.xml 中添加的库。

如何让 Eclipse 编辑器根据 build.xml 中的设置使用 ant builder 给出代码建议并检查编译错误?

4

1 回答 1

2

My version of eclipse works fine for code completion and syntax checking. Maybe yours is turned off? Check under Window > Preferences > Ant > Editor and then on the Problems tab make sure that 'Ignore all buildfile problems' is turned off.

There are also some content assist options around that area - mine are all turned on.

I'm using SCS 2.5.0.RELEASE, which sits on top of eclipse 3.6.1.r361

于 2011-12-01T14:24:18.837 回答