Skip to content

Commit 91c85b7

Browse files
committed
Update main class configurations in pom.xml
Changed the main class settings to differentiate between mobile and JPro environments. This includes setting `mainClassName.jpro` and `mainClassName.mobile` to their respective classes. Also, updated plugin configurations to use these new property values.
1 parent eb5a494 commit 91c85b7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
<maven.javadoc.skip>true</maven.javadoc.skip>
1919
<gluonfx.plugin.version>1.0.22</gluonfx.plugin.version>
2020
<javafx.plugin.version>0.0.8</javafx.plugin.version>
21-
<mainClassName>com.dlsc.jfxcentral2.app.JFXCentral2MobileApp</mainClassName>
21+
<mainClassName>com.dlsc.jfxcentral2.app.JFXCentral2App</mainClassName>
22+
<mainClassName.jpro>com.dlsc.jfxcentral2.app.JFXCentral2App</mainClassName.jpro>
23+
<mainClassName.mobile>com.dlsc.jfxcentral2.app.JFXCentral2MobileApp</mainClassName.mobile>
2224
<app.description>JFXCentral for anything JavaFX</app.description>
2325
<package.type/>
2426
<mac.app.store/>
@@ -455,7 +457,7 @@
455457
<list>browser</list>
456458
<list>video</list>
457459
</attachList>
458-
<mainClass>${mainClassName}</mainClass>
460+
<mainClass>${mainClassName.mobile}</mainClass>
459461
<releaseConfiguration>
460462
<vendor>Gluon</vendor>
461463
<description>${app.description}</description>
@@ -486,7 +488,7 @@
486488
<artifactId>jpro-maven-plugin</artifactId>
487489
<version>${jpro.version}</version>
488490
<configuration>
489-
<mainClassName>${mainClassName}</mainClassName>
491+
<mainClassName>${mainClassName.jpro}</mainClassName>
490492
<releaseName>jfxcentral</releaseName>
491493
<localJVMArgs>-Ddevelop=false</localJVMArgs>
492494
<port>8088</port>

0 commit comments

Comments
 (0)