mirror of
https://github.com/Akomry/sae302_applicom.git
synced 2025-12-06 17: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
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