Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skip Eclipse validation of build.xml

I've followed the steps given in the Android Developer Blog to generate a build.xml for building releases for an Android Application. I need to do a custom compiling so I have overwritten the target compile of the ant_rules_r3.xml as it is said in the generated build.xml.

 <target name="compile" depends="-resource-src, -aidl, -pre-compile" ...

The script works fine and generates the apk, but the problem is that Eclipse shows an error because it cannot find targets -resource-src, -aidl and -pre-compile (which are loaded when executing the script but are not really present on the build.xml). As there are these errors I cannot work with the project in Eclipse.

How can I skip the validation of this single file in Eclipse?

like image 504
Javi Avatar asked Oct 15 '10 09:10

Javi


People also ask

How do I stop eclipse validation?

Click Window > Preferences and select Validation in the left pane. The Validation page of the Preferences window lists the validators available in your project and their settings. To disable individual validators, clear the check boxes next to each validator that you want to disable.

What is validating project in Eclipse?

Introduction. The Validation Component in the wst sub project provides an extendable framework that is used to develop new custom validators to validate resources in the workbench. The resources can be an eclipse Resource (IResource) or an EMF Resource (EObject).


Video Answer


1 Answers

I do not know if you can do this for a single file but i think you can disable the validation within the eclipse preferences under Validation.

like image 64
kukudas Avatar answered Oct 01 '22 01:10

kukudas