| 1 | public 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 | } |