-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathPropDeps.java
More file actions
27 lines (23 loc) · 859 Bytes
/
PropDeps.java
File metadata and controls
27 lines (23 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.concurrent.Callable;
public class PropDeps implements Callable<Map<String, String>> {
boolean checkProp(String var) {
String varval = System.getProperty(var);
if (varval == null) { return true; }
return ! varval.equalsIgnoreCase("1");
}
@Override
public Map<String, String> call() {
Map<String, String> map = new HashMap<String, String>();
map.put("cryptotests.krb.kdc.enabled", checkProp("cryptotests.skipAgentTests") ? "true": "false");
return map;
}
public static void main(String[] args) {
for (Map.Entry<String,String> entry: new PropDeps().call().entrySet()) {
System.out.println(entry.getKey() + ": " + entry.getValue());
}
}
}