From 2fbb39e88e9881c8101da399b447aa20ee667361 Mon Sep 17 00:00:00 2001 From: Edgar Espina Date: Sun, 3 May 2020 22:28:21 -0300 Subject: [PATCH] fix build after dependencies upgrade --- .../github/jknack/handlebars/maven/PrecompilePlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handlebars-maven-plugin/src/main/java/com/github/jknack/handlebars/maven/PrecompilePlugin.java b/handlebars-maven-plugin/src/main/java/com/github/jknack/handlebars/maven/PrecompilePlugin.java index 05697a6d2..c80e260bf 100644 --- a/handlebars-maven-plugin/src/main/java/com/github/jknack/handlebars/maven/PrecompilePlugin.java +++ b/handlebars-maven-plugin/src/main/java/com/github/jknack/handlebars/maven/PrecompilePlugin.java @@ -361,12 +361,12 @@ private void minimize(final File output) throws IOException, MojoFailureExceptio compiler.initOptions(options); Result result = compiler.compile(Collections. 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 errors = result.errors; + throw new MojoFailureException(errors.get(0).toString()); } }