mirror of
https://github.com/Akomry/sae302_applicom.git
synced 2025-12-06 08:43:54 +00:00
feat(packaging): packaging de l'app via maven
This commit is contained in:
parent
115b5d0a41
commit
a9a4df6923
2 changed files with 29 additions and 3 deletions
|
|
@ -82,10 +82,10 @@
|
||||||
<!-- Default configuration for running with: mvn clean javafx:run -->
|
<!-- Default configuration for running with: mvn clean javafx:run -->
|
||||||
<id>default-cli</id>
|
<id>default-cli</id>
|
||||||
<configuration>
|
<configuration>
|
||||||
<mainClass>rtgre.chat/rtgre.chat.ChatApplication</mainClass>
|
<mainClass>rtgre.chat/rtgre.ChatLauncher</mainClass>
|
||||||
<launcher>app</launcher>
|
<launcher>app</launcher>
|
||||||
<jlinkZipName>app</jlinkZipName>
|
<jlinkZipName>chatapp</jlinkZipName>
|
||||||
<jlinkImageName>app</jlinkImageName>
|
<jlinkImageName>chatapp</jlinkImageName>
|
||||||
<noManPages>true</noManPages>
|
<noManPages>true</noManPages>
|
||||||
<stripDebug>true</stripDebug>
|
<stripDebug>true</stripDebug>
|
||||||
<noHeaderFiles>true</noHeaderFiles>
|
<noHeaderFiles>true</noHeaderFiles>
|
||||||
|
|
|
||||||
26
chat/src/main/java/rtgre/ChatLauncher.java
Normal file
26
chat/src/main/java/rtgre/ChatLauncher.java
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
package rtgre;
|
||||||
|
|
||||||
|
import rtgre.chat.ChatApplication;
|
||||||
|
import rtgre.server.ChatServer;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public class ChatLauncher {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
for (String arg : args) {
|
||||||
|
System.out.println(arg);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if ("server".equals(args[0])) {
|
||||||
|
System.out.println("test1");
|
||||||
|
ChatServer.main(args);
|
||||||
|
} else {
|
||||||
|
ChatApplication.main(args);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("test2");
|
||||||
|
ChatApplication.main(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue