I have the very easy Ant example here that produces Eclipse to report a warning:
<ivy:cachepath pathid="path.pmd" organisation="pmd" module="pmd" revision="4.3" conf="default" inline="true" />
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="path.pmd" />
The problem reported is:
Description Resource Path Location Type
Reference path.pmd not found. build.xml /MyPrj line 20 Ant Buildfile Problem
Now it is quite clear what is happening here. Ant does not see path.pmd defined in the ivy's cachepath task and creates the warning. Now I would like to ignore this warning. However, I don't want to go ignore the warning by using the Ant preferences in Eclipse. I know that is easy, but this will also mean that one day when I really have the missing reference I will not get the warning.
Does Ant have comment style ignoring? Like in PMD when you can use //NOPMD to ignore any warning on specified line. If there is, please enlighten me :)
If not, is there any other way to remove this warning from this specific line in the Ant build file.
Any help would be appreciated.
I think preferences is the key even if you don't want to, check out this, maybe you will find something else in few links away:
How to tell Eclipse to ignore errors in an Ant build.xml?
I found this from Knots:
"Another workaround (less drastic than disable all validation/problem reporting): Go to Window->preferences->Ant->Problems tab. Add "build.xml" to the ignore list..."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With