summaryrefslogtreecommitdiffstats
path: root/ui-desktop/src/main/java
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-08-09 14:46:25 +0300
committerKostya <mail@sartin.in>2026-08-09 14:46:25 +0300
commit34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13 (patch)
tree17d9c867856ff9f1de4a59f63c13d6abf0ecb31e /ui-desktop/src/main/java
parent18a9b6e4f3c9f7e034a0c174a5e2cd6c043ee169 (diff)
downloadguess-market-34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13.tar.gz
guess-market-34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13.tar.xz
guess-market-34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13.zip
flatten modules to repo root, vendor deps, repair Eclipse build paths
Move api, engine, ui-console and ui-desktop out of modules/ up to the repo root and drop the empty exception project (GuessMarketException now lives in api). Vendor gson, jaxb, okhttp, openjfx and tomcat under lib/, and group the JUnit standalone jar into lib/junit/ alongside them. Rewrite every .classpath: drop the copy-pasted optional="true" that was masking real build path errors, point the library entries at ../lib/, and put the JUnit jar on the test source folders so the placeholder AppTest classes compile. ui-desktop: take the JavaFX jars off the modulepath (there is no module-info.java, so module="true" left the packages unresolvable) and add a Launcher that calls Application.launch, avoiding the "JavaFX runtime components are missing" check without VM arguments. engine: add LocalGuessMarketService and the GuessMarketContext provider interface, and give GuessMarketException the no-arg and cause constructors they need.
Diffstat (limited to 'ui-desktop/src/main/java')
-rw-r--r--ui-desktop/src/main/java/market/guess/ui/desktop/App.java22
-rw-r--r--ui-desktop/src/main/java/market/guess/ui/desktop/Launcher.java9
2 files changed, 31 insertions, 0 deletions
diff --git a/ui-desktop/src/main/java/market/guess/ui/desktop/App.java b/ui-desktop/src/main/java/market/guess/ui/desktop/App.java
new file mode 100644
index 0000000..f0b2b7a
--- /dev/null
+++ b/ui-desktop/src/main/java/market/guess/ui/desktop/App.java
@@ -0,0 +1,22 @@
1package market.guess.ui.desktop;
2
3import javafx.application.Application;
4import javafx.scene.Scene;
5import javafx.scene.control.Label;
6import javafx.scene.layout.StackPane;
7import javafx.stage.Stage;
8
9public class App extends Application {
10 @Override
11 public void start(Stage stage) throws Exception {
12 var javaVersion = System.getProperty("java.version");
13 var openjfxVersion = System.getProperty("javafx.version");
14
15 var label =
16 new Label("Hello. JavaFX " + openjfxVersion + ", running on Java " + javaVersion + ".");
17 var scene = new Scene(new StackPane(label), 640, 480);
18
19 stage.setScene(scene);
20 stage.show();
21 }
22}
diff --git a/ui-desktop/src/main/java/market/guess/ui/desktop/Launcher.java b/ui-desktop/src/main/java/market/guess/ui/desktop/Launcher.java
new file mode 100644
index 0000000..ffe9505
--- /dev/null
+++ b/ui-desktop/src/main/java/market/guess/ui/desktop/Launcher.java
@@ -0,0 +1,9 @@
1package market.guess.ui.desktop;
2
3import javafx.application.Application;
4
5public final class Launcher {
6 public static void main(String[] args) {
7 Application.launch(App.class, args);
8 }
9}