From d9b51c230157ace93393ba9c0d1ac90c952c14de Mon Sep 17 00:00:00 2001 From: braghieri <braghieri@fbk.eu> Date: Tue, 1 Oct 2019 15:40:39 +0200 Subject: [PATCH] - improved repository pom.xml --- .../pom.xml | 80 ++++++++++++++----- 1 file changed, 60 insertions(+), 20 deletions(-) diff --git a/org.polarsys.chess.parent/releng/eu.fbk.tools.aida.chess.repository/pom.xml b/org.polarsys.chess.parent/releng/eu.fbk.tools.aida.chess.repository/pom.xml index 57e37593c..392f2dd40 100644 --- a/org.polarsys.chess.parent/releng/eu.fbk.tools.aida.chess.repository/pom.xml +++ b/org.polarsys.chess.parent/releng/eu.fbk.tools.aida.chess.repository/pom.xml @@ -3,6 +3,14 @@ <modelVersion>4.0.0</modelVersion> <artifactId>eu.fbk.tools.aida.chess.repository</artifactId> <packaging>eclipse-repository</packaging> + + <properties> + <updateSite.root>/tmp/www_us/html/tools</updateSite.root> + <updateSite.production.dir>${updateSite.root}/aida_chess</updateSite.production.dir> + <updateSite.development.dir>${updateSite.root}/aida_chess_devel</updateSite.development.dir> + <updateSite.mount.dir.root>/tmp</updateSite.mount.dir.root> + <updateSite.mount.dir>www_us</updateSite.mount.dir> + </properties> <build> <pluginManagement> @@ -59,11 +67,11 @@ <phase>install</phase> <configuration> <executable>mkdir</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <longModulepath>false</longModulepath> <arguments> <argument>-p</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> @@ -75,10 +83,10 @@ <phase>install</phase> <configuration> <executable>chmod</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <arguments> <argument>0777</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> @@ -90,19 +98,19 @@ <phase>install</phase> <configuration> <executable>sshfs</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <arguments> <argument>-o</argument> <argument>nonempty</argument> <argument>-o</argument> <argument>umask=0777</argument> <argument>es-static.fbk.eu:/</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> <execution> - <id>update_aida_development_site</id> + <id>update_development_site</id> <goals> <goal>exec</goal> </goals> @@ -113,7 +121,23 @@ <arguments> <argument>-r</argument> <argument>.</argument> - <argument>/tmp/www_us/html/tools/aida_chess_devel</argument> + <argument>${updateSite.development.dir}</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>change_site_permissions</id> + <goals> + <goal>exec</goal> + </goals> + <phase>install</phase> + <configuration> + <executable>chmod</executable> + <workingDirectory>${updateSite.development.dir}</workingDirectory> + <arguments> + <argument>-R</argument> + <argument>0777</argument> + <argument>.</argument> </arguments> </configuration> </execution> @@ -125,10 +149,10 @@ <phase>install</phase> <configuration> <executable>fusermount</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <arguments> <argument>-u</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> @@ -154,11 +178,11 @@ <phase>install</phase> <configuration> <executable>mkdir</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <longModulepath>false</longModulepath> <arguments> <argument>-p</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> @@ -170,10 +194,10 @@ <phase>install</phase> <configuration> <executable>chmod</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <arguments> <argument>0777</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> @@ -185,19 +209,19 @@ <phase>install</phase> <configuration> <executable>sshfs</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <arguments> <argument>-o</argument> <argument>nonempty</argument> <argument>-o</argument> <argument>umask=0777</argument> <argument>es-static.fbk.eu:/</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> <execution> - <id>update_aida_site</id> + <id>update_production_site</id> <goals> <goal>exec</goal> </goals> @@ -208,7 +232,23 @@ <arguments> <argument>-r</argument> <argument>.</argument> - <argument>/tmp/www_us/html/tools/aida_chess</argument> + <argument>${updateSite.production.dir}</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>change_site_permissions</id> + <goals> + <goal>exec</goal> + </goals> + <phase>install</phase> + <configuration> + <executable>chmod</executable> + <workingDirectory>${updateSite.production.dir}</workingDirectory> + <arguments> + <argument>-R</argument> + <argument>0777</argument> + <argument>.</argument> </arguments> </configuration> </execution> @@ -220,10 +260,10 @@ <phase>install</phase> <configuration> <executable>fusermount</executable> - <workingDirectory>/tmp</workingDirectory> + <workingDirectory>${updateSite.mount.dir.root}</workingDirectory> <arguments> <argument>-u</argument> - <argument>www_us</argument> + <argument>${updateSite.mount.dir}</argument> </arguments> </configuration> </execution> -- GitLab