Skip to content

Commit 81474e9

Browse files
committed
Update CommandUtils.java
1 parent d3733c8 commit 81474e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/io/github/fvarrui/javapackager/utils/CommandUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public static String execute(File workingDirectory, String executable, Object...
2121
return result.getOutput();
2222
}
2323

24+
public static String execute(File executable, Object... arguments) throws IOException, CommandLineException {
25+
return execute(executable.getAbsolutePath(), arguments);
26+
}
27+
2428
public static String execute(String executable, Object... arguments) throws IOException, CommandLineException {
2529
return execute(new File("."), executable, arguments);
2630
}

0 commit comments

Comments
 (0)