Skip to content

Commit 457b323

Browse files
author
Igor Polevoy
committed
#223 Lessc plugin need to be able to process more than one file - damn!!
1 parent 1c9a27a commit 457b323

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

activeweb-lessc/src/main/java/org/javalite/lessc/maven/CompileLesscFilesMojo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ public String compile(File sourceFile) throws IOException, InterruptedException,
8282
if(!sourceFile.exists()){
8383
throw new MojoExecutionException("File: " + sourceFile.getPath() + " does not exist. Current directory: " + new File(".").getCanonicalPath());
8484
}
85-
getLog().info("Executing: " + "lessc " + sourceFile.getPath());
85+
8686

8787
String exec = "lessc";
8888
if (System.getProperty("os.name").toLowerCase().contains("windows")) {
8989
exec += ".cmd";
9090
}
91+
92+
getLog().info("Executing: " + exec + " " + sourceFile.getPath());
9193
Process process = getRuntime().exec(new String[]{exec, sourceFile.getPath()});
9294
String css = read(process.getInputStream(), "UTF-8");
9395
String error = read(process.getErrorStream(), "UTF-8");

0 commit comments

Comments
 (0)