MCPcopy Create free account
hub / github.com/ashishps1/awesome-low-level-design / BuildSystem

Class BuildSystem

design-patterns/java/facade/BuildSystem.java:1–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public class BuildSystem {
2 public boolean compileProject() {
3 System.out.println("BuildSystem: Compiling project...");
4 simulateDelay(2000);
5 System.out.println("BuildSystem: Build successful.");
6 return true;
7 }
8
9 public String getArtifactPath() {
10 String path = "target/myapplication-1.0.jar";
11 System.out.println("BuildSystem: Artifact located at " + path);
12 return path;
13 }
14
15 private void simulateDelay(int ms) {
16 try {
17 Thread.sleep(ms);
18 } catch (InterruptedException e) {
19 e.printStackTrace();
20 }
21 }
22}

Callers 2

__init__Method · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected