How to tell Eclipse to ignore errors in an Ant build.xml?

橙三吉。 提交于 2019-12-02 20:22:19

Window-> Preferences -> Ant -> Editor -> Problems (Tab)
check 'Ignore all buildfile problems'

Mayoares

Go to Window->preferences->Ant->Problems tab. Add "build.xml" to the ignore list.

I found this workaround here.

But my recommendation would be (if possible) to rename your build.xml first and only add this new build-filename to the ignore list. Then you avoid to ignore all other build.xml files in your eclipse workspace. That's how I use it :-)

I found another workaround using the antcontrib task if-"Dummy-Wrapping" I already had included in our build framework:

<target ...>
  <if><istrue value="on" /><then> <!-- remove annoying "tst.local.ant.targets.show.out doesn't exist" warning in Eclipse Problems view and Ant View -->
    <loadfile property="in" srcfile="${tmpOut}.out">
      <filterchain><expandproperties/></filterchain></loadfile>
  </then></if>
  ...
</target>

Use javac option

failonerror="false"

<javac includeantruntime="false" srcdir="${src}" destdir="${build}" failonerror="false"/>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!