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 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');