From a0e55d2f5e1c016088c736a173127b7baa181235 Mon Sep 17 00:00:00 2001 From: Zorelien Date: Wed, 26 Nov 2014 17:18:40 +0100 Subject: [PATCH] https://github.com/bodtx/cantine/issues/5 : Open PsNext --- src/main/java/cantine/controller/PsNext.java | 11 ++++++++++- src/main/resources/static/accueil.html | 6 +++--- src/main/resources/static/css/cantine.css | 4 ++++ src/main/resources/static/js/controllers/accueil.js | 7 ++++++- src/main/resources/static/js/iLikeCirso.js | 2 +- .../resources/static/js/services/psNextService.js | 8 ++++++++ 6 files changed, 32 insertions(+), 6 deletions(-) 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!!!! - -