File tree Expand file tree Collapse file tree 7 files changed +27
-7
lines changed
java/com/project/authapi/system_log_analyzer Expand file tree Collapse file tree 7 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Java CI
2+
3+ on :
4+ pull_request :
5+ branches : [ "master" ]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout repo
12+ uses : actions/checkout@v4
13+
14+ - name : Set up JDK
15+ uses : actions/setup-java@v4
16+ with :
17+ java-version : ' 25'
18+ distribution : ' temurin'
19+
20+ - name : Build with Maven
21+ run : mvn clean test
Original file line number Diff line number Diff line change 11package com .project .authapi .system_log_analyzer ;
22
3+ import com .project .authapi .system_log_analyzer .controller .WelcomeViewFXController ;
34import javafx .application .Application ;
45import javafx .fxml .FXMLLoader ;
56import javafx .scene .Parent ;
67import javafx .scene .Scene ;
78import javafx .stage .Stage ;
8- import org .springframework .boot .autoconfigure .SpringBootApplication ;
99import org .springframework .boot .builder .SpringApplicationBuilder ;
1010import org .springframework .context .ConfigurableApplicationContext ;
1111
12- @ SpringBootApplication
1312public class SystemLogAnalyzerApp extends Application {
1413
1514 private ConfigurableApplicationContext springContext ;
@@ -21,9 +20,9 @@ public void init() {
2120
2221 @ Override
2322 public void start (Stage primaryStage ) throws Exception {
24- FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/WelcomeView.fxml" ));
23+ FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/view/ WelcomeView.fxml" ));
2524 loader .setControllerFactory (springContext ::getBean );
26- loader .setController (springContext .getBean (com . project . authapi . system_log_analyzer . controller . LogAnalyzerFXController .class ));
25+ loader .setController (springContext .getBean (WelcomeViewFXController .class ));
2726 Parent root = loader .load ();
2827
2928 Scene scene = new Scene (root );
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ protected List<LogEvent> call() throws Exception {
7070
7171 var springContext = com .project .authapi .system_log_analyzer .config .ApplicationContextProvider .getApplicationContext ();
7272
73- FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/MainWindow.fxml" ));
73+ FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/view/ MainWindow.fxml" ));
7474 loader .setControllerFactory (springContext ::getBean );
7575 Parent root = loader .load ();
7676
Original file line number Diff line number Diff line change 2222import java .io .IOException ;
2323
2424@ Component
25- public class LogAnalyzerFXController {
25+ public class WelcomeViewFXController {
2626 @ FXML private Button scanButton ;
2727 @ FXML private TextField logFilesDirField ;
2828 @ FXML private TextField reportDirField ;
@@ -55,7 +55,7 @@ private void scan(ActionEvent event) throws IOException {
5555
5656 ApplicationContext springContext = ApplicationContextProvider .getApplicationContext ();
5757
58- FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/LoadingScreen.fxml" ));
58+ FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/view/ LoadingScreen.fxml" ));
5959 loader .setControllerFactory (springContext ::getBean ); // <-- magiczna linia
6060 Parent root = loader .load ();
6161
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments