Skip to content

Commit

Permalink
fix build after dependencies upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed May 4, 2020
1 parent fc9e32e commit 2fbb39e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -361,12 +361,12 @@ private void minimize(final File output) throws IOException, MojoFailureExceptio
compiler.initOptions(options);

Result result = compiler.compile(Collections.<SourceFile> emptyList(),
Arrays.asList(SourceFile.fromFile(output)), options);
Arrays.asList(SourceFile.fromFile(output.getAbsolutePath())), options);
if (result.success) {
FileUtils.fileWrite(output, compiler.toSource());
} else {
JSError[] errors = result.errors;
throw new MojoFailureException(errors[0].toString());
List<JSError> errors = result.errors;
throw new MojoFailureException(errors.get(0).toString());
}
}

Expand Down

0 comments on commit 2fbb39e

Please sign in to comment.