File tree Expand file tree Collapse file tree
java/com/project/authapi/system_log_analyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Java CI
2+
3+ on :
4+ pull_request :
5+ branches : [ "main" ]
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 : ' 21'
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 ;
@@ -21,9 +22,9 @@ public void init() {
2122
2223 @ Override
2324 public void start (Stage primaryStage ) throws Exception {
24- FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/WelcomeView.fxml" ));
25+ FXMLLoader loader = new FXMLLoader (getClass ().getResource ("/view/ WelcomeView.fxml" ));
2526 loader .setControllerFactory (springContext ::getBean );
26- loader .setController (springContext .getBean (com . project . authapi . system_log_analyzer . controller . LogAnalyzerFXController .class ));
27+ loader .setController (springContext .getBean (WelcomeViewFXController .class ));
2728 Parent root = loader .load ();
2829
2930 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