Skip to content

Commit 575ff6c

Browse files
author
Igor Polevoy
committed
#223 Lessc plugin need to be able to process more than one file - fix for Windows
1 parent 91fd6ca commit 575ff6c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

activeweb-lessc-integration-test/src/test/java/org/javalite/lessc/maven/IntegrationTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*/
1313
public class IntegrationTest {
1414

15+
String maven = System.getProperty("os.name").contains("Windows") ? "mvn.bat" : "mvn";
16+
1517
protected String execute(String dir, String... args) throws IOException, InterruptedException {
1618
InputStream stdErr, stdOut;
1719
Process process = Runtime.getRuntime().exec(args, new String[]{"JAVA_HOME=" + System.getProperty("java.home")}, new File(dir));
@@ -41,7 +43,7 @@ public void shouldCompileProjectWithSingleLessFile() throws IOException, Interru
4143

4244
String root = "target/test-project";
4345

44-
String output = execute(root, "mvn", "clean");
46+
String output = execute(root, maven, "clean");
4547
the(output).shouldContain("BUILD SUCCESS");
4648
output = execute(root, "mvn", "install", "-o");
4749
the(output).shouldContain("BUILD SUCCESS");
@@ -53,9 +55,9 @@ public void shouldCompileProjectWithSingleLessFile() throws IOException, Interru
5355
@Test
5456
public void shouldCompileProjectWithMultipleLessFile() throws IOException, InterruptedException {
5557
String root = "target/test-project-list";
56-
String output = execute(root, "mvn", "clean");
58+
String output = execute(root, maven, "clean");
5759
the(output).shouldContain("BUILD SUCCESS");
58-
output = execute(root, "mvn", "install", "-o");
60+
output = execute(root, maven, "install", "-o");
5961
the(output).shouldContain("BUILD SUCCESS");
6062

6163
File f = new File(root + "/target/web1/bootstrap.css");

0 commit comments

Comments
 (0)