Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can to make a web app project validation fast in eclipse IDE?

While I am doing Project-->clean to web application in eclipse, validation of XHTML files is very slow.It's taking around 20 minutes to complete the validation.I have 54 XHTML files in my project.

I unchecked all the entires in window--> preferences-->validations.It's building very fast but I don't know it's a proper way to bypass validations.I am using Eclipse Indigo version.How can I make eclipse to complete validation fast?

like image 270
SRy Avatar asked Dec 19 '12 04:12

SRy


People also ask

How do I validate in Eclipse?

To validate an CloudFormation template in Eclipse Perform either one of the following actions: Right-click the template name in the Package Explorer view and click Validate on the context menu. Right-click the template that you are editing in the editor pane and click Validate on the context menu.

How do I stop project validation in Eclipse?

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.

How do I fix Eclipse not responding?

If there is a project you earlier imported externally (outside of Workspace), that may cause this problem. If you can access Eclipse try to remove it. If you are getting the 'No responding at startup', then go delete the file at source. This will solve the problem.


1 Answers

20 minutes to complete validation of 54 XHTML files is certainly problematic. Re-enable all validators, and run Project -> Clean. As Eclipse is re-validating the files, take a few core dumps of Eclipse's JVM; that might shed a light on where, exactly, things are lagging.

My bet is that the validators are trying to access external resources during validations, for example - to download XML schema files or DTD's. If your XHTML files contain references to external resources like those, it is possible that they are the reason for the lag. You could download such DTD's and Schemas, and use Eclipse's XML Catalog to bind DTD/Schema references to physical files on your machine (instead of fetching them online).

That's just one theory. To know for sure, though, you'll have to issue core dumps of Eclipse's JVM and look closer.

like image 154
Isaac Avatar answered Oct 10 '22 02:10

Isaac