Author: tchemit Date: 2014-03-03 16:24:16 +0100 (Mon, 03 Mar 2014) New Revision: 62 Url: http://forge.codelutin.com/projects/wlo/repository/revisions/62 Log: refs #4630: [TECH] Mise ?\195?\160 jour automatique de l'application Added: trunk/update/ trunk/update/wlo-update.properties Modified: trunk/pom.xml Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2014-03-03 12:45:57 UTC (rev 61) +++ trunk/pom.xml 2014-03-03 15:24:16 UTC (rev 62) @@ -503,6 +503,75 @@ </plugins> </build> </profile> + + <profile> + <id>deploy-wlo-application-update</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <build> + <defaultGoal>deploy</defaultGoal> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>Generate wlo-update.properties</id> + <phase>package</phase> + <inherited>false</inherited> + <configuration> + <tasks> + <copy verbose="true" failonerror="false" overwrite="true" filtering="true" todir="${project.build.directory}/update"> + <filterset> + <filter value="${project.version}" token="projectVersion" /> + </filterset> + <fileset dir="${basedir}/update/"> + <include name="wlo-update.properties" /> + </fileset> + </copy> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>wagon-maven-plugin</artifactId> + <version>1.0-beta-4</version> + <executions> + <execution> + <id>deploy wlo-update.properties</id> + <phase>deploy</phase> + <inherited>false</inherited> + <goals> + <goal>upload-single</goal> + </goals> + <configuration> + <serverId>doc.codelutin.com</serverId> + <fromFile> + ${project.build.directory}/update/wlo-update.properties + </fromFile> + <url> + scpexe://doc.codelutin.com/var/www/ApplicationUpdate/http/wlo + </url> + </configuration> + </execution> + </executions> + + </plugin> + </plugins> + </build> + + </profile> + </profiles> </project> Added: trunk/update/wlo-update.properties =================================================================== --- trunk/update/wlo-update.properties (rev 0) +++ trunk/update/wlo-update.properties 2014-03-03 15:24:16 UTC (rev 62) @@ -0,0 +1,28 @@ +### +# #%L +# WLO +# %% +# Copyright (C) 2014 Ifremer, Code Lutin +# %% +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program. If not, see +# <http://www.gnu.org/licenses/gpl-3.0.html>. +# #L% +### + +################################################################################ +### Application Updates ######################################################## +################################################################################ + +application.version=@projectVersion@ +application.url=https://nexus.nuiton.org/nexus/content/groups/wlo-group/fr/ifremer/wlo/@proj... Property changes on: trunk/update/wlo-update.properties ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native