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