google-code-export / wro4j

Automatically exported from code.google.com/p/wro4j
1 stars 1 forks source link

ro.isdc.wro.extensions.processor.js.NgMinProcessor is never supported #843

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install wro4j runner
2. Attempt to process a javascript file with java -jar wro4j-runner-1.7.2.jar 
-c googleClosureAdvanced -m --preProcessors ngMin
3.

What is the expected output? What do you see instead?
Expected to see a new minimized processed file.  

Error message saying that NgMinProcessor is not supported.

What version of the product are you using? On what operating system?

Please provide any additional information below.
To workaround the issue, I update the following method from:

  @Override
  public boolean isSupported() {
    try {
      final InputStream input = new ByteArrayInputStream("".getBytes("UTF-8"));
      process(input, null);
    } catch (final Exception e) {
      LOG.debug("The {} processor is not supported. Because: {}", getClass().getName(), e.getMessage());
    }
    return false;
  }

to

  @Override
  public boolean isSupported() {
    boolean isSupported = true;
    try {
      final InputStream input = new ByteArrayInputStream("".getBytes("UTF-8"));
      process(input, null);
    } catch (final Exception e) {
      LOG.debug("The {} processor is not supported. Because: {}", getClass().getName(), e.getMessage());
      isSupported = false;
    }
    return isSupported;
  }

Original issue reported on code.google.com by erron.au...@gmail.com on 6 Feb 2014 at 1:54

GoogleCodeExporter commented 9 years ago
Thanks for sharing this. Will fix it very soon.

Original comment by alex.obj...@gmail.com on 6 Feb 2014 at 1:55

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.7.x

Original comment by alex.obj...@gmail.com on 6 Feb 2014 at 2:12