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?
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.
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.
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.
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.
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