forked from mecdcme/is2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/it/istat/is2/app/service/AdministrationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright 2019 ISTAT | ||
* | ||
* Licensed under the EUPL, Version 1.1 or – as soon they will be approved by | ||
* the European Commission - subsequent versions of the EUPL (the "Licence"); | ||
* You may not use this work except in compliance with the Licence. You may | ||
* obtain a copy of the Licence at: | ||
* | ||
* http://ec.europa.eu/idabc/eupl5 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Licence is distributed on an "AS IS" basis, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* Licence for the specific language governing permissions and limitations under | ||
* the Licence. | ||
* | ||
* @author Francesco Amato <framato @ istat.it> | ||
* @author Mauro Bruno <mbruno @ istat.it> | ||
* @author Paolo Francescangeli <pafrance @ istat.it> | ||
* @author Renzo Iannacone <iannacone @ istat.it> | ||
* @author Stefano Macone <macone @ istat.it> | ||
* @version 1.0 | ||
*/ | ||
package it.istat.is2.app.service; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class AdministrationService { | ||
|
||
@Value("${path.script.R}") | ||
private String pathR; | ||
|
||
@Value("${RServe.file.start}") | ||
private String startRServe; | ||
|
||
public void startR() throws IOException { | ||
Process process = Runtime.getRuntime().exec("cmd /c "+startRServe, null, new File(pathR)); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!-- | ||
Copyright 2019 ISTAT | ||
Licensed under the EUPL, Version 1.1 or - as soon they will be approved by | ||
the European Commission - subsequent versions of the EUPL (the "Licence"); | ||
You may not use this work except in compliance with the Licence. You may | ||
obtain a copy of the Licence at: | ||
http://ec.europa.eu/idabc/eupl5 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the Licence is distributed on an "AS IS" basis, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
Licence for the specific language governing permissions and limitations under | ||
the Licence. | ||
@author Francesco Amato <framato @ istat.it> | ||
@author Mauro Bruno <mbruno @ istat.it> | ||
@author Paolo Francescangeli <pafrance @ istat.it> | ||
@author Renzo Iannacone <iannacone @ istat.it> | ||
@author Stefano Macone <macone @ istat.it> | ||
@version 1.0 | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<head th:include="layout :: site-head" th:remove="tag" /> | ||
|
||
|
||
</head> | ||
<body class="app header-fixed sidebar-fixed aside-menu-fixed sidebar-lg-show"> | ||
<header th:replace="layout :: site-header"></header> | ||
<!-- Body --> | ||
<div class="app-body"> | ||
<aside th:replace="layout :: site-modals"></aside> | ||
<aside th:replace="layout :: site-aside"></aside> | ||
<!-- Main container --> | ||
<main class="main"> | ||
<!-- Breadcrumb--> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"> | ||
<a th:href="@{/}">Home</a> | ||
</li> | ||
|
||
</ol> | ||
<div class="container-fluid"> | ||
<div class="animated fadeIn"> | ||
<a th:href="@{/startr}">Start R</a> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
<!-- End body --> | ||
<footer th:replace="layout :: site-footer" /> | ||
|
||
|
||
</body> | ||
</html> |