From: Vásáry Dániel Date: Tue, 13 Feb 2018 23:28:27 +0000 (+0000) Subject: git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube... X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=1a5a793cd1178b36384398a4a5928407621648db;p=mediacube.git git-tfs-id: [tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C30902 --- diff --git a/server/-configuration/deploy-bkup-mediacube-plugins.launch b/server/-configuration/deploy-bkup-mediacube-plugins.launch new file mode 100644 index 00000000..664347a5 --- /dev/null +++ b/server/-configuration/deploy-bkup-mediacube-plugins.launch @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/server/-product/pom.xml b/server/-product/pom.xml index 35d23307..86ba36fb 100644 --- a/server/-product/pom.xml +++ b/server/-product/pom.xml @@ -1,6 +1,6 @@ - + 4.0.0 ../-modules @@ -33,12 +33,12 @@ materialize-products - - - - - - + + + + + + @@ -164,48 +164,92 @@ - - - - - org.codehaus.mojo - exec-maven-plugin - 1.5.0 - - - remote-deploy - deploy - - exec - - - ${project.build.directory} - winscp.com - - /command - "echo STARTING DEPLOY TO: ${remote.address}" - "open ${remote.address} -hostkey=""${remote.hostkey}""" - - - "call rm -rf ${remote.location}" - "call mkdir ${remote.location}" - "lcd ${local.location}" - "cd ${remote.location}" - "synchronize remote" - "mkdir log" - "call chmod +x mediacube" - "call chmod +x start-mediacube.sh" - "call chmod +x stop-mediacube.sh" - - "exit" - - - + + + + + full + + + + org.codehaus.mojo + exec-maven-plugin + 1.5.0 + + + remote-deploy + deploy + + exec + + + ${project.build.directory} + winscp.com + + /command + "echo STARTING DEPLOY TO: ${remote.address}" + "open ${remote.address} -hostkey=""${remote.hostkey}""" + "call rm -rf ${remote.location}" + "call mkdir ${remote.location}" + "lcd ${local.location}" + "cd ${remote.location}" + "synchronize remote" + "mkdir log" + "mkdir tmp" + "call chmod +w tmp" + "call chmod +x mediacube" + "call chmod +x start-mediacube.sh" + "call chmod +x stop-mediacube.sh" + "exit" + + + + + + + + + + plugins + + + + org.codehaus.mojo + exec-maven-plugin + 1.5.0 + + + remote-deploy + deploy + + exec + + + ${project.build.directory} + winscp.com + + /command + "echo STARTING DEPLOY TO: ${remote.address}" + "open ${remote.address} -hostkey=""${remote.hostkey}""" + "lcd ${local.location}/plugins" + "cd ${remote.location}/plugins" + "synchronize remote" + "exit" + + + + + + + + + + ${project.build.directory}/products/MediaCube/linux/gtk/x86_64 diff --git a/server/user.jobengine.osgi.services/echo.bat b/server/user.jobengine.osgi.services/echo.bat new file mode 100644 index 00000000..cf913799 --- /dev/null +++ b/server/user.jobengine.osgi.services/echo.bat @@ -0,0 +1 @@ +echo %1 \ No newline at end of file diff --git a/server/user.jobengine.osgi.services/pom.xml b/server/user.jobengine.osgi.services/pom.xml index 7c73ea01..787546d8 100644 --- a/server/user.jobengine.osgi.services/pom.xml +++ b/server/user.jobengine.osgi.services/pom.xml @@ -1,7 +1,6 @@ - + ../-modules user.jobengine @@ -12,4 +11,63 @@ user.jobengine.osgi.services eclipse-plugin 1.0.0 + + + profile-1 + + + + + org.codehaus.mojo + exec-maven-plugin + 1.5.0 + + + install + install + + exec + + + echo + + xxx + + + + + + + + + + + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.5.0 + + + install + install + + exec + + + echo + + yyy + + + + + + + + + \ No newline at end of file diff --git a/server/user.jobengine.osgi.services/src/user/jobengine/osgi/rest/jobengine/JobengineService.java b/server/user.jobengine.osgi.services/src/user/jobengine/osgi/rest/jobengine/JobengineService.java index c2a98113..edd1fc5a 100644 --- a/server/user.jobengine.osgi.services/src/user/jobengine/osgi/rest/jobengine/JobengineService.java +++ b/server/user.jobengine.osgi.services/src/user/jobengine/osgi/rest/jobengine/JobengineService.java @@ -31,6 +31,20 @@ public class JobengineService { //logger.info("Created"); } + @GET + @Path("/check") + @Consumes({ MediaType.APPLICATION_JSON }) + @Produces({ MediaType.APPLICATION_JSON }) + public Response check() { + Response result = null; + try { + result = Response.ok().build(); + } catch (Exception e) { + result = Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build(); + } + return result; + } + @POST @Path("/create") @Consumes({ MediaType.APPLICATION_JSON })