This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
63 lines (49 loc) · 1.57 KB
/
Main.java
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
public class Main {
private static String url;
private static String username;
private static String password;
private static String modifiedUrl;
public static void main(String[] args) {
BuildConnection buildConnection = new BuildConnection();
while (buildConnection.isVisible()) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
url = buildConnection.getUrl();
username = buildConnection.getUsername();
password = buildConnection.getPassword();
System.out.println("URL: " + url);
System.out.println("Username: " + username);
System.out.println("Password: " + password);
modifiedUrl = modifyUrl(url);
System.out.println("Modified URL: " + modifiedUrl);
Thread openloginwindow = new Thread(() -> {
LoginWindow.main(new String[]{});
});
openloginwindow.start();
try {
openloginwindow.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public static String modifyUrl(String inputUrl) {
String modifiedUrl = inputUrl.replace("xepdb1", "XE");
return modifiedUrl;
}
public static String getUrl() {
return url;
}
public static String getUsername() {
return username;
}
public static String getPassword() {
return password;
}
public static String getModifiedUrl() {
return modifiedUrl;
}
}