Package ro.isdc.wro.extensions.processor.support.linter

Examples of ro.isdc.wro.extensions.processor.support.linter.AbstractLinter


   */
  @Override
  public void process(final Resource resource, final Reader reader, final Writer writer)
    throws IOException {
    final String content = IOUtils.toString(reader);
    final AbstractLinter linter = enginePool.getObject();
    try {
      // TODO investigate why linter fails when trying to reuse the same instance twice
      linter.setOptions(getOptions()).validate(content);
    } catch (final LinterException e) {
      onLinterException(e, resource);
    } catch (final WroRuntimeException e) {
      onException(e);
      final String resourceUri = resource == null ? StringUtils.EMPTY : "[" + resource.getUri() + "]";
View Full Code Here

TOP

Related Classes of ro.isdc.wro.extensions.processor.support.linter.AbstractLinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.