forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
18 lines (17 loc) · 661 Bytes
/
Test.java
File metadata and controls
18 lines (17 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Test {
public static void main(String[] args) throws java.io.IOException {
// Relative paths
Runtime.getRuntime().exec("make");
Runtime.getRuntime().exec("m");
Runtime.getRuntime().exec(new String[] { "make" });
Runtime.getRuntime().exec("c:make");
Runtime.getRuntime().exec("make " + args[0]);
// Absolute paths
Runtime.getRuntime().exec("/usr/bin/make");
Runtime.getRuntime().exec("bin/make");
Runtime.getRuntime().exec("\\Program Files\\Gnu Make\\Bin\\Make.exe");
Runtime.getRuntime().exec(new String[] { "/usr/bin/make" });
Runtime.getRuntime().exec("c:\\make");
Runtime.getRuntime().exec("/usr/bin/make " + args[0]);
}
}