diff --git a/src/main/java/cantine/controller/PsNext.java b/src/main/java/cantine/controller/PsNext.java index 3bd1566..fa88f97 100644 --- a/src/main/java/cantine/controller/PsNext.java +++ b/src/main/java/cantine/controller/PsNext.java @@ -6,7 +6,6 @@ import org.springframework.web.bind.annotation.RestController; import java.util.Calendar; -import java.util.Date; @RestController public class PsNext { @@ -26,4 +25,14 @@ public boolean getPsNext() throws Exception { return false; } + @RequestMapping(value = "/openPs", method = RequestMethod.GET) + @ResponseBody + public void openPsNext() throws Exception { + Runtime runtime = Runtime.getRuntime(); + //runtime.exec(new String[] { "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe", "https://ressources.rh.recouv/index.php?module=1140"} ); + //TODO a paramétrer + runtime.exec(new String[] { "C:\\Windows\\SysWOW64\\javaws.exe ", "-localfile", "-J-Djnlp.application.href=http://sciforma.altair.recouv/sciforma/128/WebStart_fr.jnlp", + "D:\\UTILISATEURS\\CER3100444\\AppData\\LocalLow\\Sun\\Java\\Deployment\\cache\\6.0\\42\\2e7526a-55dccc3d"} ); + } + } diff --git a/src/main/resources/static/accueil.html b/src/main/resources/static/accueil.html index b344aca..d8d0393 100644 --- a/src/main/resources/static/accueil.html +++ b/src/main/resources/static/accueil.html @@ -17,12 +17,12 @@ Cool! T'as un café gratos!!!! - -