This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository nuiton-updater. See http://git.nuiton.org/nuiton-updater.git commit 0854eb7a38417a6c8fc49dc6dbca1af936dbe877 Author: Tony CHEMIT <chemit@codelutin.com> Date: Sat Aug 23 11:53:30 2014 +0200 fixes #3460: Migrates to git fixes #3462: Updates nuiton-utils to 3.0-rc-6 fixes #3463: updates nuiton-config to 3.0-rc-1 fixes #3464: Make javadoc jdk8 compliant --- .gitignore | 7 ++ pom.xml | 62 ++++++------ src/license/THIRD-PARTY.properties | 4 +- .../updater/AbstractApplicationUpdaterAction.java | 37 +------ .../java/org/nuiton/updater/ApplicationInfo.java | 6 +- .../org/nuiton/updater/ApplicationUpdater.java | 68 ++++++------- .../ApplicationUpdaterActionGetVersions.java | 7 +- .../updater/ApplicationUpdaterActionUpdate.java | 33 +++---- .../nuiton/updater/ApplicationUpdaterCallback.java | 22 ++--- .../java/org/nuiton/updater/DownloadMonitor.java | 4 +- .../UpdateInvalidArchiveLayoutException.java | 7 +- .../nuiton/updater/UpdateNotFoundException.java | 4 +- src/site/apt/index.apt | 61 ------------ src/site/apt/versions.apt | 34 ------- src/site/site.xml | 57 +++++++++++ src/site/site_fr.xml | 110 --------------------- .../org/nuiton/updater/ApplicationUpdaterTest.java | 6 +- .../ApplicationUpdaterNetworkAuthTest.properties | 2 - .../ApplicationUpdaterNetworkTest.properties | 2 - .../resources/ApplicationUpdaterTest.properties | 2 - src/test/resources/log4j.properties | 2 - 21 files changed, 172 insertions(+), 365 deletions(-) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..340ab47 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/target +/.idea +/*.ipr +/*.iml +/*.iws +/*~ +/*~ \ No newline at end of file diff --git a/pom.xml b/pom.xml index de72786..c178d0d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,8 +4,8 @@ <parent> <groupId>org.nuiton</groupId> - <artifactId>mavenpom4redmineAndCentral</artifactId> - <version>4.7</version> + <artifactId>nuitonpom</artifactId> + <version>1.2</version> </parent> <artifactId>nuiton-updater</artifactId> @@ -13,7 +13,7 @@ <name>Nuiton Application Updater</name> <description>Simple Application updater</description> - <url>https://maven-site.nuiton.org/nuiton-updater</url> + <url>https://doc.nuiton.org/nuiton-updater</url> <inceptionYear>2013</inceptionYear> <developers> @@ -33,7 +33,7 @@ <developer> <name>Tony Chemit</name> <id>tchemit</id> - <email>chemit at codelutin dot com</email> + <email>chemit@codelutin.com</email> <organization>CodeLutin</organization> <organizationUrl>http://www.codelutin.com/</organizationUrl> <timezone>Europe/Paris</timezone> @@ -45,18 +45,15 @@ </developers> <scm> - <connection> - scm:svn:https://nuiton.org/svn/nuiton-updater/trunk - </connection> - <developerConnection> - scm:svn:https://nuiton.org/svn/nuiton-updater/trunk - </developerConnection> - <url>https://nuiton.org/projects/nuiton-updater/repository/show/trunk</url> + <connection>scm:git:http://git.nuiton.org/nuiton-updater.git</connection> + <developerConnection>scm:git:https://git.nuiton.org/nuiton-updater.git</developerConnection> + <url>https://gitweb.nuiton.org/nuiton-updater.git</url> </scm> + <distributionManagement> <site> - <id>${platform}</id> - <url>${our.site.repository}/${projectId}</url> + <id>${site.server}</id> + <url>${site.url}</url> </site> </distributionManagement> @@ -79,13 +76,27 @@ <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-utils</artifactId> - <version>3.0-rc-2</version> + <version>3.0-SNAPSHOT</version> + <exclusions> + <exclusion> + <groupId>commons-beanutils</groupId> + <artifactId>commons-beanutils</artifactId> + </exclusion> + <exclusion> + <groupId>commons-primitives</groupId> + <artifactId>commons-primitives</artifactId> + </exclusion> + <exclusion> + <groupId>org.nuiton.i18n</groupId> + <artifactId>nuiton-i18n</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-config</artifactId> - <version>3.0-alpha-2</version> + <version>3.0-rc-1</version> </dependency> <dependency> @@ -107,38 +118,45 @@ <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> + <version>17.0</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> + <version>3.3.2</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> + <version>1.2</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> + <version>2.4</version> </dependency> <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> + <version>3.1</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> + <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> + <version>1.2.17</version> <scope>provided</scope> </dependency> @@ -164,19 +182,7 @@ <reportSets> <reportSet> <reports> - <report>project-team</report> - <report>mailing-list</report> - <report>cim</report> - <report>issue-tracking</report> - <report>license</report> - <report>scm</report> - <report>dependency-info</report> - <report>dependencies</report> - <report>dependency-convergence</report> - <report>plugin-management</report> - <report>plugins</report> - <report>dependency-management</report> - <report>summary</report> + <report>index</report> </reports> </reportSet> </reportSets> diff --git a/src/license/THIRD-PARTY.properties b/src/license/THIRD-PARTY.properties index 0e49dd1..7f7301b 100644 --- a/src/license/THIRD-PARTY.properties +++ b/src/license/THIRD-PARTY.properties @@ -16,5 +16,5 @@ # Please fill the missing licenses for dependencies : # # -#Sat Jul 20 16:20:15 CEST 2013 -commons-primitives--commons-primitives--1.0=The Apache Software License, Version 2.0 +#Sat Aug 23 11:19:10 CEST 2014 +commons-codec--commons-codec--1.2=The Apache Software License, Version 2.0 diff --git a/src/main/java/org/nuiton/updater/AbstractApplicationUpdaterAction.java b/src/main/java/org/nuiton/updater/AbstractApplicationUpdaterAction.java index 95bfbb3..2af84f1 100644 --- a/src/main/java/org/nuiton/updater/AbstractApplicationUpdaterAction.java +++ b/src/main/java/org/nuiton/updater/AbstractApplicationUpdaterAction.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -33,8 +31,8 @@ import org.apache.commons.vfs2.FileSystemManager; import org.apache.commons.vfs2.FileSystemOptions; import org.apache.commons.vfs2.VFS; import org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder; -import org.nuiton.util.VersionUtil; import org.nuiton.config.ApplicationConfig; +import org.nuiton.util.version.Versions; import java.io.BufferedInputStream; import java.io.File; @@ -50,7 +48,7 @@ import java.util.regex.Pattern; /** * Abstract updater action. * - * @author tchemit <chemit@codelutin.com> + * @author Tony Chemit - chemit@codelutin.com * @since 2.6.12 */ public abstract class AbstractApplicationUpdaterAction implements Runnable { @@ -94,7 +92,7 @@ public abstract class AbstractApplicationUpdaterAction implements Runnable { for (String app : appNames) { String currentVersion = appVersions.get(app); String newVersion = releaseConfig.getOption(app + ApplicationUpdater.SEPARATOR_KEY + VERSION_KEY); - boolean greater = VersionUtil.greaterThan(newVersion, currentVersion); + boolean greater = Versions.greaterThan(newVersion, currentVersion); log.debug(String.format("for %s Current(%s) < newVersion(%s) ? %s", app, currentVersion, newVersion, greater)); boolean add = allVersion || greater; @@ -120,8 +118,8 @@ public abstract class AbstractApplicationUpdaterAction implements Runnable { * est donc fait pour ce cas. Cela est necessaire pour facilement faire * des tests unitaires independant de la machine ou il sont fait * - * @param path - * @return + * @param path le path a cvonvertir + * @return le path converti en URL vsf2 */ protected String toVfsURL(String path) { String result = path; @@ -137,12 +135,6 @@ public abstract class AbstractApplicationUpdaterAction implements Runnable { return result; } - /** - * Return config prepared for os and arch - * - * @return - * @throws Exception - */ protected ApplicationConfig getUpdaterConfig(FileSystemOptions vfsConfig, String vfsPropertiesUrl) throws Exception { String osName = StringUtils.lowerCase(config.getOsName()); @@ -186,12 +178,6 @@ public abstract class AbstractApplicationUpdaterAction implements Runnable { return result; } - /** - * Recupere le proxy http a utiliser pour les connexions reseaux - * - * @param config - * @return - */ protected FileSystemOptions getVFSConfig(ApplicationConfig config) { FileSystemOptions result = new FileSystemOptions(); String proxyHost = config.getOption(HTTP_PROXY); @@ -216,12 +202,6 @@ public abstract class AbstractApplicationUpdaterAction implements Runnable { return result; } - /** - * Recherche pour chaque application la version courante - * - * @param apps la liste des applications a rechercher - * @return - */ protected Map<String, String> getCurrentVersion(List<String> apps, File dir) { Map<String, String> result = Maps.newTreeMap(); for (String app : apps) { @@ -234,13 +214,6 @@ public abstract class AbstractApplicationUpdaterAction implements Runnable { return result; } - /** - * Retourne la liste des noms d'application se trouvant dans la - * configuration - * - * @param config - * @return - */ protected List<String> getApplicationName(ApplicationConfig config) { Pattern p = Pattern.compile("([^.]+)\\.version"); List<String> result = new LinkedList<String>(); diff --git a/src/main/java/org/nuiton/updater/ApplicationInfo.java b/src/main/java/org/nuiton/updater/ApplicationInfo.java index 02ed4f6..0cc6512 100644 --- a/src/main/java/org/nuiton/updater/ApplicationInfo.java +++ b/src/main/java/org/nuiton/updater/ApplicationInfo.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -30,8 +28,8 @@ import java.io.Serializable; /** * TODO * - * @author bpoussin <poussing@codelutin.com> - * @author tchemit <chemit@codelutin.com> + * @author Benjamin Poussin - poussin@codelutin.com + * @author Tony Chemit - chemit@codelutin.com * @since 2.7 */ public class ApplicationInfo implements Serializable { diff --git a/src/main/java/org/nuiton/updater/ApplicationUpdater.java b/src/main/java/org/nuiton/updater/ApplicationUpdater.java index 2bd6b46..a56e5b9 100644 --- a/src/main/java/org/nuiton/updater/ApplicationUpdater.java +++ b/src/main/java/org/nuiton/updater/ApplicationUpdater.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -37,78 +35,71 @@ import java.util.Map; /** * Permet de telecharger des mises a jour d'application. - * <p/> - * Le principe est qu'un fichier properties pointe par une URL indique les - * information necessaire pour la recuperation de l'application. - * <p/> - * Si une nouvelle version de l'application existe, elle est alors telechargee + * <p>Le principe est qu'un fichier properties pointe par une URL indique les + * information necessaire pour la recuperation de l'application.</p> + * <p>Si une nouvelle version de l'application existe, elle est alors telechargee * et decompressee dans un repertoire specifique (elle ne remplace pas l'application - * courante). - * <p/> - * Il est alors a la charge d'un script de mettre en place cette nouvelle application - * a la place de l'ancienne. - * <p/> - * Il est possible d'interagir avec ApplicationUpdater via l'implantation d'un + * courante).</p> + * <p>Il est alors a la charge d'un script de mettre en place cette nouvelle application + * a la place de l'ancienne.</p> + * <p>Il est possible d'interagir avec ApplicationUpdater via l'implantation d'un * {@link ApplicationUpdaterCallback} passer en parametre de la methode {@link #update} - * <p/> + * </p> * <h3>Configuration possible</h3> - * Vous pouvez passer un ApplicationConfig dans le constructeur ou utiliser - * la recherche du fichier de configuration par defaut (ApplicationUpdater.properties) - * <p/> - * Cette configuration permet de récupérer les informations suivantes: - * <li>http_proxy: le proxy a utiliser pour l'acces au reseau (ex: squid.chezmoi.fr:8080) - * <li>os.name: le nom du systeme d'exploitation sur lequel l'application fonctionne (ex: Linux) - * <li>os.arch: l'architecture du systeme d'exploitation sur lequel l'application fonctionne (ex: amd64) - * <p/> + * <p>Vous pouvez passer un ApplicationConfig dans le constructeur ou utiliser + * la recherche du fichier de configuration par defaut (ApplicationUpdater.properties).</p> + * Cette configuration permet de récupérer les informations suivantes : + * <ul> + * <li>http_proxy: le proxy a utiliser pour l'acces au reseau (ex: squid.chezmoi.fr:8080)</li> + * <li>os.name: le nom du systeme d'exploitation sur lequel l'application fonctionne (ex: Linux)</li> + * <li>os.arch: l'architecture du systeme d'exploitation sur lequel l'application fonctionne (ex: amd64)</li> + * </ul> * <h3>format du fichier de properties</h3> - * <p/> + * <ul> * <li>[osName.][osArch.]appName.version=version de l'application</li> * <li>[osName.][osArch.]appName.auth=true ou false selon que l'acces a l'url * demande une authentification a fournir par le callback * (voir {@link ApplicationUpdaterCallback#updateToDo})</li> * <li>[osName.][osArch.]appName.url=url du fichier compresse de la nouvelle version * (format <a href="http://commons.apache.org/vfs/filesystems.html">commons-vfs2</a>)</li> - * <p/> - * appName est a remplacer par le nom de l'application. Il est possible + * </ul> + * <ul> + * <li>appName est a remplacer par le nom de l'application. Il est possible * d'avoir plusieurs application dans le meme fichier ou plusieurs version - * en fonction de l'os et de l'architecture. - * <p/> - * osName et osArch sont toujours en minuscule - * <p/> + * en fonction de l'os et de l'architecture.</li> + * <li>osName et osArch sont toujours en minuscule.</li> + * </ul> * <h3>format des fichiers compresses</h3> - * <p/> * Le fichier compresse doit avoir un repertoire racine qui contient l'ensemble de l'application * c-a-d que les fichiers ne doivent pas etre directement a la racine lorsqu'on * decompresse le fichier. - * <p/> - * exemple de contenu de fichier compresse convenable + * + * Exemple de contenu de fichier compresse convenable * <pre> * MonApp-0.3/Readme.txt * MonApp-0.3/License.txt * </pre> - * <p/> * Ceci est du au fait qu'on renomme le repertoire racine avec le nom de l'application, * donc si le repertoire racine n'existe pas ou qu'il y a plusieurs repertoires * a la racine le resultat de l'operation n'est pas celui souhaite - * <p/> * <h3>os.name and os.arch</h3> * <table> - * <th><td>os.name</td><td>os.arch</td></th> + * <caption>Exemple</caption> + * <tr><th>os.name</th><th>os.arch</th></tr> * <tr><td>linux</td><td>amd64</td></tr> * <tr><td>linux</td><td>i386</td></tr> * <tr><td>mac</td><td>ppc</td></tr> * <tr><td>windows</td><td>x86</td></tr> * <tr><td>solaris</td><td>sparc</td></tr> * </table> - * <p/> * os.name est tronque apres le 1er mot donc "windows 2000" et "windows 2003" * deviennet tous les deux "windows". Si vous souhaitez gérer plus finement vos * url de telechargement vous pouvez modifier les donnees via * {@link ApplicationUpdaterCallback#updateToDo(java.util.Map) } en modifiant * l'url avant de retourner la map * - * @author bpoussin <poussing@codelutin.com> - * @author tchemit <chemit@codelutin.com> + * @author Benjamin Poussin - poussin@codelutin.com + * @author Tony Chemit - chemit@codelutin.com * @since 2.7 */ public class ApplicationUpdater { @@ -230,6 +221,7 @@ public class ApplicationUpdater { * @param url url where properties file is downloadable. This properties * must contains information on application release * @param currentDir directory where application is currently + * @return application infos for each application found in configuration */ public Map<String, ApplicationInfo> getVersions(String url, File currentDir) { diff --git a/src/main/java/org/nuiton/updater/ApplicationUpdaterActionGetVersions.java b/src/main/java/org/nuiton/updater/ApplicationUpdaterActionGetVersions.java index b5cb3cb..4141243 100644 --- a/src/main/java/org/nuiton/updater/ApplicationUpdaterActionGetVersions.java +++ b/src/main/java/org/nuiton/updater/ApplicationUpdaterActionGetVersions.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -36,7 +34,7 @@ import java.util.Map; /** * Get version of updates. * - * @author tchemit <chemit@codelutin.com> + * @author Tony Chemit - chemit@codelutin.com * @since 2.6.12 */ public class ApplicationUpdaterActionGetVersions extends AbstractApplicationUpdaterAction { @@ -61,8 +59,7 @@ public class ApplicationUpdaterActionGetVersions extends AbstractApplicationUpda public void run() { try { FileSystemOptions vfsConfig = getVFSConfig(config); - ApplicationConfig releaseConfig = getUpdaterConfig( - vfsConfig, vfsPropertiesUrl); + ApplicationConfig releaseConfig = getUpdaterConfig(vfsConfig, vfsPropertiesUrl); Map<String, ApplicationInfo> appToUpdate = getVersions(releaseConfig, true, null); diff --git a/src/main/java/org/nuiton/updater/ApplicationUpdaterActionUpdate.java b/src/main/java/org/nuiton/updater/ApplicationUpdaterActionUpdate.java index 596d914..6d499c2 100644 --- a/src/main/java/org/nuiton/updater/ApplicationUpdaterActionUpdate.java +++ b/src/main/java/org/nuiton/updater/ApplicationUpdaterActionUpdate.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -47,7 +45,7 @@ import java.util.Map; /** * Apply available updates. * - * @author tchemit <chemit@codelutin.com> + * @author Tony Chemit - chemit@codelutin.com * @since 2.6.12 */ public class ApplicationUpdaterActionUpdate extends AbstractApplicationUpdaterAction { @@ -75,10 +73,11 @@ public class ApplicationUpdaterActionUpdate extends AbstractApplicationUpdaterAc } /** + * <ul> * <li>Recupere le fichier properties contenant les informations de mise a jour * <li>liste les applications et leur version actuelle * <li>pour chaque application a mettre a jour recupere le zip et le decompresse - * <p/> + * </ul> * Si callback existe envoi les messages necessaires */ @Override @@ -153,7 +152,7 @@ public class ApplicationUpdaterActionUpdate extends AbstractApplicationUpdaterAc * * @param vfsConfig le proxy a utiliser pour la connexion a l'url * @param info information sur l'application a mettre a jour - * @throws Exception + * @throws Exception pour toute erreur pendant la mise à jour */ protected void doUpdate(FileSystemOptions vfsConfig, ApplicationInfo info) throws Exception { @@ -193,13 +192,13 @@ public class ApplicationUpdaterActionUpdate extends AbstractApplicationUpdaterAc /** * Télécharge une archive dans un fichier temporaraire. - * <p/> * Si l'archive a plus d'un repertoire root, une exception est levee * * @param vfsConfig configuration of vsf ( - * @param info + * @param info informations sur l'application * @param srcPath source path de la forme vfs2 ex:"zip:http://www.nuiton.org/attachments/download/830/nuiton-utils-2.6.5-deps.zip" - * @throws FileSystemException + * @return le fichier téléchargé + * @throws IOException pour toute erreur pendant le téléchargement */ protected File downloadUpdate(FileSystemOptions vfsConfig, ApplicationInfo info, @@ -248,19 +247,19 @@ public class ApplicationUpdaterActionUpdate extends AbstractApplicationUpdaterAc } /** - * Recopie le contenu du répertoire de l'archive dans le - * répertoire {@code target}. - * <p/> - * Si le répertoire cible existe déjà, il sera alors vidé. - * <p/> - * Si l'archive ne contient pas exactement un répertoire alors une exception est levée + * Recopie le contenu du répertoire de l'archive dans le répertoire {@code target}. + * <ul> + * <li>Si le répertoire cible existe déjà, il sera alors vidé.</li> + * <li>Si l'archive ne contient pas exactement un répertoire alors une exception est levée</li> + * </ul> * + * @param vfsConfig la configuration vsf + * @param info informations sur l'application * @param archiveType le type de l'archive * @param source l'archive à décompresser * @param target le répertoire cible - * @throws FileSystemException - * @throws UpdateInvalidArchiveLayoutException - * si l'archive n'a pas le bon format + * @throws FileSystemException si une erreur survient lors des opérations d'IO + * @throws UpdateInvalidArchiveLayoutException si l'archive n'a pas le bon format */ protected void explodeUpdate(FileSystemOptions vfsConfig, ApplicationInfo info, diff --git a/src/main/java/org/nuiton/updater/ApplicationUpdaterCallback.java b/src/main/java/org/nuiton/updater/ApplicationUpdaterCallback.java index dfc80d4..7b2f7de 100644 --- a/src/main/java/org/nuiton/updater/ApplicationUpdaterCallback.java +++ b/src/main/java/org/nuiton/updater/ApplicationUpdaterCallback.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -29,33 +27,33 @@ import java.util.Map; /** * Permet d'interagir avec ApplicationUpdater. * - * @author bpoussin <poussing@codelutin.com> - * @author tchemit <chemit@codelutin.com> + * @author Benjamin Poussin - poussin@codelutin.com + * @author Tony Chemit - chemit@codelutin.com * @since 2.7 */ public interface ApplicationUpdaterCallback { /** - * Appeler avant la recuperation des nouvelles versions - * <p/> + * Appeler avant la recuperation des nouvelles versions. + * <p> * Permet de modifier le repertoire destination ou l'url du zip de * l'application pour une application/version * particuliere ou d'annuler la mise a jour en le supprimant de la map - * qui sera retourne. - * <p/> + * qui sera retourne.</p> + * <h3>Authentification</h3> * Si {@link ApplicationInfo#needAuthentication} est vrai, il faut que * les valeurs {@link ApplicationInfo#login} et {@link ApplicationInfo#password} * soient renseignees. Si elle ne le sont pas la recuperation de la * ressource echouera. Pour des raisons de securite vous pouvez souhaiter * mettre le mot de passe sous une forme encrypte. Dans ce cas il doit - * etre encadrer par '{' et '}'. Pour encrypter le mot de passe - * vous devez utiliser: + * etre encadrer par '{' et '}'. + * + * Pour encrypter le mot de passe vous devez utiliser: * <pre> * java -cp commons-vfs-2.0.jar org.apache.commons.vfs2.util.EncryptUtil encrypt mypassword * </pre> * * @param appToUpdate liste des applications a mettre a jour - * @return null or empty map if we don't want update, otherwize list of - * app to update + * @return {@code null} or empty map if we don't want update, otherwize list of app to update */ Map<String, ApplicationInfo> updateToDo(Map<String, ApplicationInfo> appToUpdate); diff --git a/src/main/java/org/nuiton/updater/DownloadMonitor.java b/src/main/java/org/nuiton/updater/DownloadMonitor.java index 60d93e2..62475b0 100644 --- a/src/main/java/org/nuiton/updater/DownloadMonitor.java +++ b/src/main/java/org/nuiton/updater/DownloadMonitor.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -27,7 +25,7 @@ package org.nuiton.updater; /** * Pour monitorer la progression d'un téléchargement. * - * @author tchemit <chemit@codelutin.com> + * @author Tony Chemit - chemit@codelutin.com * @since 2.6.11 */ public interface DownloadMonitor { diff --git a/src/main/java/org/nuiton/updater/UpdateInvalidArchiveLayoutException.java b/src/main/java/org/nuiton/updater/UpdateInvalidArchiveLayoutException.java index 6967735..98b5d84 100644 --- a/src/main/java/org/nuiton/updater/UpdateInvalidArchiveLayoutException.java +++ b/src/main/java/org/nuiton/updater/UpdateInvalidArchiveLayoutException.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -30,7 +28,7 @@ import java.io.File; * Exception leve lorsque l'archive d'une mise à jour ne respecte pas le bon * format (à savoir contenir un uniquement répertoire). * - * @author tchemit <chemit@codelutin.com> + * @author Tony Chemit - chemit@codelutin.com * @since 2.6.11 */ public class UpdateInvalidArchiveLayoutException extends Exception { @@ -39,10 +37,11 @@ public class UpdateInvalidArchiveLayoutException extends Exception { protected final ApplicationInfo info; + protected final File archiveFile; public UpdateInvalidArchiveLayoutException(ApplicationInfo info, File archiveFile) { - this.info= info; + this.info = info; this.archiveFile = archiveFile; } diff --git a/src/main/java/org/nuiton/updater/UpdateNotFoundException.java b/src/main/java/org/nuiton/updater/UpdateNotFoundException.java index c95cc1e..8e2f8ac 100644 --- a/src/main/java/org/nuiton/updater/UpdateNotFoundException.java +++ b/src/main/java/org/nuiton/updater/UpdateNotFoundException.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -29,7 +27,7 @@ import java.io.IOException; /** * When an update is not found. * - * @author tchemit <chemit@codelutin.com> + * @author Tony Chemit - chemit@codelutin.com * @since 2.6.11 */ public class UpdateNotFoundException extends IOException { diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt deleted file mode 100644 index 51b3aca..0000000 --- a/src/site/apt/index.apt +++ /dev/null @@ -1,61 +0,0 @@ - ---- - Nuiton updater - ---- - ---- - 2013-02-24 - ---- - -~~~ -~~ #%L -~~ Nuiton Application Updater -~~ $Id$ -~~ $HeadURL$ -~~ %% -~~ Copyright (C) 2013 CodeLutin,Tony Chemit -~~ %% -~~ This program is free software: you can redistribute it and/or modify -~~ it under the terms of the GNU Lesser 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 Lesser Public License for more details. -~~ -~~ You should have received a copy of the GNU General Lesser Public -~~ License along with this program. If not, see -~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. -~~ #L% -~~~ - -Présentation - - TODO - -Note - - <<Nuiton-updater>> quitte le projet <nuiton-utils> pour devenir un projet autonome. - - Voici quelques liens sur le nouveau projet: - - * {{{http://svn.nuiton.org/svn/nuiton-updater}svn}} - - * {{{http://nuiton.org/projects/nuiton-updater}forge}} - - * {{{http://maven-site.nuiton.org/nuiton-updater}site}} - - [] - - A noter que le GAV de l'artefact ne change pas (<org.nuiton:nuiton-updater>). - - La dernière version stable dans nuiton-utils est la 2.7; vous pouvez dès à - présent utiliser la version 3.0-alpha-1 de nuiton-updater. - - Pour plus de détails sur les changements importants entre chaque version, - vous pouvez consulter les {{{./versions.html}Notes de versions}}. - - - - - diff --git a/src/site/apt/versions.apt b/src/site/apt/versions.apt deleted file mode 100644 index 8cbd3d3..0000000 --- a/src/site/apt/versions.apt +++ /dev/null @@ -1,34 +0,0 @@ -~~~ -~~ #%L -~~ Nuiton Config -~~ $Id$ -~~ $HeadURL$ -~~ %% -~~ Copyright (C) 2013 CodeLutin -~~ %% -~~ This program is free software: you can redistribute it and/or modify -~~ it under the terms of the GNU Lesser 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 Lesser Public License for more details. -~~ -~~ You should have received a copy of the GNU General Lesser Public -~~ License along with this program. If not, see -~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. -~~ #L% -~~~ - ---- - Nuiton csv - ---- - ---- - 2013-07-23 - ---- - -Utilisation de la version 3.0 - - * Pour passer sur cette version, il faut changer les packages <org.nuiton.util.csv> - en <org.nuiton.csv>. \ No newline at end of file diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..9a6d1d4 --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + Nuiton Application Updater + %% + Copyright (C) 2013 CodeLutin + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser 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 Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> + + +<project name="${project.name}"> + + <bannerLeft> + <name>${project.name}</name> + <href>index.html</href> + </bannerLeft> + + <bannerRight> + <src>http://www.codelutin.com/images/lutinorange-codelutin.png</src> + <href>https://www.codelutin.com</href> + </bannerRight> + + <body> + + <links> + <item name="Nuiton.org" href="https://forge.nuiton.org"/> + <item name="Code Lutin" href="https://www.codelutin.com"/> + <item name="Libre entreprise" href="http://www.libre-entreprise.org"/> + </links> + + <breadcrumbs> + <item name="${project.name}" + href="${project.url}/index.html"/> + + <item name="${project.version}" + href="${project.url}/${siteDeployClassifier}/index.html"/> + </breadcrumbs> + + <menu ref="reports"/> + + </body> + +</project> diff --git a/src/site/site_fr.xml b/src/site/site_fr.xml deleted file mode 100644 index f932d30..0000000 --- a/src/site/site_fr.xml +++ /dev/null @@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - #%L - Nuiton Application Updater - $Id$ - $HeadURL$ - %% - Copyright (C) 2013 CodeLutin - %% - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Lesser 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 Lesser Public License for more details. - - You should have received a copy of the GNU General Lesser Public - License along with this program. If not, see - <http://www.gnu.org/licenses/lgpl-3.0.html>. - #L% - --> - - -<project name="${project.name}"> - - <skin> - <groupId>org.apache.maven.skins</groupId> - <artifactId>maven-fluido-skin</artifactId> - <version>${fluidoSkinVersion}</version> - </skin> - - <custom> - <fluidoSkin> - <topBarEnabled>false</topBarEnabled> - <googleSearch/> - <sideBarEnabled>true</sideBarEnabled> - <searchEnabled>true</searchEnabled> - <sourceLineNumbersEnabled>true</sourceLineNumbersEnabled> - </fluidoSkin> - </custom> - - <bannerLeft> - <name>${project.name}</name> - <href>index.html</href> - </bannerLeft> - - <bannerRight> - <src>http://www.codelutin.com/images/lutinorange-codelutin.png</src> - <href>http://www.codelutin.com</href> - </bannerRight> - - <publishDate position="right" /> - <version position="right" /> - - <poweredBy> - - <logo href="http://maven.apache.org" name="Maven" - img="${mavenpomSiteCommonResourcesUrl}/public/images/logos/maven-feather.png"/> - - </poweredBy> - - <body> - - <head> - <script type="text/javascript" - src="${mavenpomSiteCommonResourcesUrl}/public/js/mavenpom-site.js"> - </script> - - <link rel="stylesheet" type="text/css" - href="${mavenpomSiteCommonResourcesUrl}/public/css/mavenpom-site.css"/> - </head> - - <links> - <item name="Nuiton.org" href="http://nuiton.org"/> - <item name="Code Lutin" href="http://www.codelutin.com"/> - <item name="Libre entreprise" href="http://www.libre-entreprise.org"/> - </links> - - <breadcrumbs> - <item name="${project.name}" - href="${project.url}/index.html"/> - </breadcrumbs> - - <menu name="Utilisateur"> - <item name="Accueil" href="index.html"/> - <item name="Note de versions" href="versions.html"/> - </menu> - - <menu ref="reports"/> - - <footer> - - <div id='projectMetas' locale='fr' - projectversion='${project.version}' - platform='${project.platform}' - projectid='${project.projectId}' - scm='${project.scm.developerConnection}' - scmwebeditorenabled='${project.scmwebeditorEnabled}' - scmwebeditorurl='${project.scmwebeditorUrl}' - siteSourcesType='${project.siteSourcesType}' - piwikEnabled='${project.piwikEnabled}' - piwikId='${project.piwikId}' - scmwebeditor_skipDefaultFiles="true"> - </div> - </footer> - </body> -</project> diff --git a/src/test/java/org/nuiton/updater/ApplicationUpdaterTest.java b/src/test/java/org/nuiton/updater/ApplicationUpdaterTest.java index 301f2c6..e58d32e 100644 --- a/src/test/java/org/nuiton/updater/ApplicationUpdaterTest.java +++ b/src/test/java/org/nuiton/updater/ApplicationUpdaterTest.java @@ -3,8 +3,6 @@ package org.nuiton.updater; /* * #%L * Nuiton Application Updater - * $Id$ - * $HeadURL$ * %% * Copyright (C) 2013 CodeLutin, Tony Chemit * %% @@ -33,8 +31,8 @@ import java.io.File; import java.util.Map; /** - * @author bpoussin <poussing@codelutin.com> - * @author tchemit <chemit@codelutin.com> + * @author Benjamin Poussin - poussin@codelutin.com + * @author Tony Chemit - chemit@codelutin.com * @since 2.7 */ public class ApplicationUpdaterTest { diff --git a/src/test/resources/ApplicationUpdaterNetworkAuthTest.properties b/src/test/resources/ApplicationUpdaterNetworkAuthTest.properties index 941992f..246f692 100644 --- a/src/test/resources/ApplicationUpdaterNetworkAuthTest.properties +++ b/src/test/resources/ApplicationUpdaterNetworkAuthTest.properties @@ -1,8 +1,6 @@ ### # #%L # Nuiton Application Updater -# $Id$ -# $HeadURL$ # %% # Copyright (C) 2013 CodeLutin, Tony Chemit # %% diff --git a/src/test/resources/ApplicationUpdaterNetworkTest.properties b/src/test/resources/ApplicationUpdaterNetworkTest.properties index 44185d0..2e78f03 100644 --- a/src/test/resources/ApplicationUpdaterNetworkTest.properties +++ b/src/test/resources/ApplicationUpdaterNetworkTest.properties @@ -1,8 +1,6 @@ ### # #%L # Nuiton Application Updater -# $Id$ -# $HeadURL$ # %% # Copyright (C) 2013 CodeLutin, Tony Chemit # %% diff --git a/src/test/resources/ApplicationUpdaterTest.properties b/src/test/resources/ApplicationUpdaterTest.properties index 20b22f7..9b4fe4b 100644 --- a/src/test/resources/ApplicationUpdaterTest.properties +++ b/src/test/resources/ApplicationUpdaterTest.properties @@ -1,8 +1,6 @@ ### # #%L # Nuiton Application Updater -# $Id$ -# $HeadURL$ # %% # Copyright (C) 2013 CodeLutin, Tony Chemit # %% diff --git a/src/test/resources/log4j.properties b/src/test/resources/log4j.properties index cd27e8a..41ed143 100644 --- a/src/test/resources/log4j.properties +++ b/src/test/resources/log4j.properties @@ -1,8 +1,6 @@ ### # #%L # Nuiton Application Updater -# $Id$ -# $HeadURL$ # %% # Copyright (C) 2013 CodeLutin, Tony Chemit # %% -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.