From f487c4c681735206aa78b9d4685d8e5b6208eacd Mon Sep 17 00:00:00 2001 From: loziniak Date: Mon, 24 Apr 2017 23:14:42 +0200 Subject: [PATCH 1/2] readme fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a61d63..4048eb5 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Fast maven plugin for less compiler (use jless). It can also convert multiple fi # Parameters -* from: Source less file. +* from: Source less file, relative to project's basedir. * to: Destination CSS file. * append: Append the CSS to the other file (if 'to' does not set). * compress: Compress the output or not. @@ -50,7 +50,7 @@ Fast maven plugin for less compiler (use jless). It can also convert multiple fi # History **v1.5** -* Yodate to jlessc version 1.5 +* Update to jlessc version 1.5 **v1.2** * Update to jlessc version 1.2 From 995a645675c12b65d1ace81d2dc607499595958b Mon Sep 17 00:00:00 2001 From: loziniak Date: Mon, 24 Apr 2017 23:19:35 +0200 Subject: [PATCH 2/2] allow non-standard maven basedirs --- src/main/java/com/github/wpic/LessMojo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/github/wpic/LessMojo.java b/src/main/java/com/github/wpic/LessMojo.java index 6405133..b1bc6ad 100644 --- a/src/main/java/com/github/wpic/LessMojo.java +++ b/src/main/java/com/github/wpic/LessMojo.java @@ -50,7 +50,7 @@ public void execute() throws MojoExecutionException, MojoFailureException { else if (compile.to == null && compile.append == null) { for (String f : files) { try { - final File from = new File(f); + final File from = new File(baseDir, f); final String css = Less.compile(from, Boolean.TRUE.equals(compile.compress)); final String name = from.getName(); @@ -74,7 +74,7 @@ else if (compile.to != null) { for (String f : files) { try { - final File from = new File(f); + final File from = new File(baseDir, f); css.append(Less.compile(from, Boolean.TRUE.equals(compile.compress))); css.append('\n'); @@ -98,7 +98,7 @@ else if (compile.append != null) { for (String f : files) { try { - final File from = new File(f); + final File from = new File(baseDir, f); css.append(Less.compile(from, Boolean.TRUE.equals(compile.compress))); css.append('\n');