Tony CHEMIT pushed to branch master at ultreiaio / ird-observe Commits: 9f47ba93 by Tony CHEMIT at 2017-03-15T15:07:30+01:00 [jgitflow-maven-plugin]updating poms for 6.0-RC-2-SNAPSHOT development - - - - - cd0ad7a7 by Tony CHEMIT at 2017-03-15T15:13:43+01:00 [jgitflow-maven-plugin]updating develop poms to master versions to avoid merge conflicts - - - - - 0349bd86 by Tony CHEMIT at 2017-03-15T15:13:44+01:00 [jgitflow-maven-plugin]merging 'master' into 'develop' - - - - - 618eb890 by Tony CHEMIT at 2017-03-15T15:13:45+01:00 [jgitflow-maven-plugin]Updating develop poms back to pre merge state - - - - - ca63154c by Tony CHEMIT at 2017-03-15T15:14:33+01:00 update changelog - - - - - 50d10cea by Tony CHEMIT at 2017-03-20T08:57:40+00:00 Update .gitlab-ci.yml - - - - - f8460ca9 by Tony CHEMIT at 2017-03-20T08:59:51+00:00 Update .gitlab-ci.yml - - - - - 8b948b06 by Tony CHEMIT at 2017-03-20T09:03:16+00:00 Update README.md - - - - - 52c35b8c by Tony CHEMIT at 2017-03-20T10:22:58+01:00 review site - - - - - 8cb5d39b by Tony CHEMIT at 2017-03-20T10:23:07+01:00 review pom - - - - - dd4c4ab8 by Tony CHEMIT at 2017-03-20T10:28:04+01:00 Update changelog after stage of milestone 6.0-RC-1 - - - - - 2523f24e by Tony CHEMIT at 2017-03-20T10:50:12+01:00 update changelog - - - - - 221f6c43 by Tony CHEMIT at 2017-03-20T10:52:21+01:00 [Report from 5.x] Message d'erreur à chaque fermeture de l'application (See #747) - - - - - 7e42bc7e by Tony CHEMIT at 2017-03-20T10:53:04+01:00 rerool 6.0-RC-1 - - - - - f9dfb0a4 by Tony CHEMIT at 2017-03-20T10:55:02+01:00 update color [skip ci] - - - - - 41181596 by Tony CHEMIT at 2017-03-20T10:58:35+01:00 update readme [skip ci] - - - - - 8ae66bc2 by Tony CHEMIT at 2017-03-20T11:36:30+01:00 fix model version - - - - - c8e85e0a by Tony CHEMIT at 2017-03-20T11:40:15+01:00 better gitflow configuration [skip ci] - - - - - 6664279c by Tony CHEMIT at 2017-03-20T11:41:32+01:00 [jgitflow-maven-plugin]updating poms for branch'release/6.0-RC-1' with non-snapshot versions - - - - - 8d2b2cee by Tony CHEMIT at 2017-03-20T11:47:15+01:00 [jgitflow-maven-plugin]merging 'release/6.0-RC-1' into 'master' - - - - - 16 changed files: - .gitlab-ci.yml - CHANGELOG.md - README.md - application-swing/src/main/java/fr/ird/observe/application/swing/backup/AtCloseApplicationLocalDatabaseBackupTask.java - pom.xml - src/site/resources/images/architecture.png → src/site/resources/img/architecture.png - src/site/resources/images/architecture.svg → src/site/resources/img/architecture.svg - src/site/resources/images/logos/argouml-logo.png → src/site/resources/img/argouml-logo.png - src/site/resources/images/logos/jaxx-logo.png → src/site/resources/img/jaxx-logo.png - src/site/resources/images/logo-small.png → src/site/resources/img/logo-small.png - src/site/resources/images/logo.png → src/site/resources/img/logo.png - src/site/resources/images/logos/logo_IntelliJIDEA.png → src/site/resources/img/logo_IntelliJIDEA.png - src/site/resources/images/logo_ird.png → src/site/resources/img/logo_ird.png - src/site/resources/images/logos/topia-logo.png → src/site/resources/img/topia-logo.png - − src/site/resources/site.js - src/site/site_fr.xml Changes: ===================================== .gitlab-ci.yml ===================================== --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,8 +21,10 @@ stages: - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + - git config --global user.name $GITLAB_USER_ID + - git config --global user.email $GITLAB_USER_EMAIL - (cd ~ ; git clone ssh://git@gitlab.com/maven.ultreia.io/env.git) - - . ~/env/bin/prepare-env.sh "$MAVEN_PRIVATE_KEY" "$CI_PROJECT_PATH" "$CI_PROJECT_NAME" + - . ~/env/bin/prepare-env.sh .before_script_clone: &before_script_clone tags: @@ -34,8 +36,10 @@ stages: - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + - git config --global user.name $GITLAB_USER_ID + - git config --global user.email $GITLAB_USER_EMAIL - (cd ~ ; git clone ssh://git@gitlab.com/maven.ultreia.io/env.git) - - . ~/env/bin/prepare-env-with-clone.sh "$MAVEN_PRIVATE_KEY" "$CI_PROJECT_PATH" "$CI_PROJECT_NAME" + - . ~/env/bin/prepare-env-with-clone.sh "$CI_PROJECT_PATH" "$CI_PROJECT_NAME" .env_test: &env_test environment: @@ -51,8 +55,7 @@ stages: .deploy_site: &deploy_site script: - - mvn install -DskipTests - - mvn site-deploy -DperformRelease + - mvn clean verify site -DperformRelease scm-publish:publish-scm .deploy_demo_latest: &deploy_demo_latest stage: Test @@ -86,11 +89,11 @@ stage: <<: *before_script_clone script: - apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y - - wget -O - https://gitlab.com/maven.ultreia.io/pom/raw/master/bin/close-milestone.sh | bash - - wget -O - https://gitlab.com/maven.ultreia.io/pom/raw/master/bin/create-stage.sh | bash - - wget -O - https://gitlab.com/maven.ultreia.io/pom/raw/master/bin/update-staging-change... | sed 's/$1/frirdobserve/' | bash - - wget -O - https://gitlab.com/maven.ultreia.io/pom/raw/master/bin/create-milestone.sh | bash - - wget -O - https://gitlab.com/maven.ultreia.io/pom/raw/master/bin/close-stage.sh | sed 's/$1/frirdobserve/' | bash + - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-milestone.sh | bash + - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-stage.sh | bash + - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/update-staging-changelog.sh | sed 's/$1/frirdobserve/' | bash + - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-milestone.sh | bash + - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-stage.sh | sed 's/$1/frirdobserve/' | bash latest-site: <<: *env_test @@ -146,13 +149,13 @@ release: <<: *staging when: manual script: - - wget -O - https://gitlab.com/maven.ultreia.io/pom/raw/master/bin/release-stage.sh | sed 's/$1/frirdobserve/' | bash + - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/release-stage.sh | sed 's/$1/frirdobserve/' | bash drop: <<: *staging when: manual script: - - wget -O - https://gitlab.com/maven.ultreia.io/pom/raw/master/bin/drop-stage.sh | sed 's/$1/frirdobserve/' | bash + - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/drop-stage.sh | sed 's/$1/frirdobserve/' | bash production: stage: Production ===================================== CHANGELOG.md ===================================== The diff for this file was not included because it is too large. ===================================== README.md ===================================== --- a/README.md +++ b/README.md @@ -1,17 +1,18 @@ # ObServe [](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22fr.ird.observe%22%20AND%20a%3A%22observe%22) - + +[](http://www.gnu.org/licenses/gpl-3.0.txt) # Resources -* [Changelog and downloads](https://gitlab.com/ultreia.io/ird-observe/blob/develop/CHANGELOG.md) -* [Documentation](http://observe.ultreia.io) +* [Changelog and downloads](https://gitlab.com/ultreiaio/ird-observe/blob/develop/CHANGELOG.md) +* [Documentation](http://ultreiaio.gitlab.io/ird-observe) # Demo * [Demo (latest)](https://demo.ultreia.io/observe-latest) -* [Demo (5.x)](https://demo.ultreia.io/observe-5.3.2) +* [Demo (5.x)](https://demo.ultreia.io/observe-5.3.5) * [Demo (6.x)](https://demo.ultreia.io/observe-6.0-RC-1) # Community @@ -19,3 +20,37 @@ * [Mailing-list (Devel)](http://list.forge.codelutin.com/cgi-bin/mailman/listinfo/observe-devel) * [Mailing-list (Commits)](http://list.forge.codelutin.com/cgi-bin/mailman/listinfo/observe-commits) * [Contact](mailto:dev@tchemit.fr) + +# Release (without stage) + +``` +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-milestone.sh | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-stage.sh | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-and-release-stage.sh | sed 's/$1/frirdobserve/' | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/update-changelog.sh | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-milestone.sh | bash +``` + +# Release (with stage) + +Create stage + +``` +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-milestone.sh | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-stage.sh | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-stage.sh | sed 's/$1/frirdobserve/' | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/update-staging-changelog.sh | sed 's/$1/frirdobserve/' | bash +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-milestone.sh | bash +``` + +And to release stage + +``` +wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/release-stage.sh | sed 's/$1/frirdobserve/' | bash +``` + +# Generate site + +``` +mvn clean verify site -DperformRelease scm-publish:publish-scm +``` \ No newline at end of file ===================================== application-swing/src/main/java/fr/ird/observe/application/swing/backup/AtCloseApplicationLocalDatabaseBackupTask.java ===================================== --- a/application-swing/src/main/java/fr/ird/observe/application/swing/backup/AtCloseApplicationLocalDatabaseBackupTask.java +++ b/application-swing/src/main/java/fr/ird/observe/application/swing/backup/AtCloseApplicationLocalDatabaseBackupTask.java @@ -51,24 +51,22 @@ public class AtCloseApplicationLocalDatabaseBackupTask extends LocalDatabaseBack return; } - boolean mustClose = false; ObserveSwingDataSource mainDataSource = applicationContext.getDataSourcesManager().getMainDataSource(); - if (mainDataSource == null || !mainDataSource.isLocal()) { - - mainDataSource = applicationContext.getDataSourcesManager().newLocalDatasource(applicationContext.getConfig()); - mustClose = true; + if (mainDataSource == null) { + if (log.isInfoEnabled()) { + log.info("Skip, no database open."); + } + return; } - - try { - File file = doBackup(applicationContext, mainDataSource); - applicationContext.getBackupsManager().addAutomaticBackup(file.toPath()); - } finally { - - if (mustClose) { - mainDataSource.close(); + if (!mainDataSource.isLocal()) { + if (log.isInfoEnabled()) { + log.info("Skip, open database is not local."); } + return; } + File file = doBackup(applicationContext, mainDataSource); + applicationContext.getBackupsManager().addAutomaticBackup(file.toPath()); } ===================================== pom.xml ===================================== --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ <parent> <groupId>io.ultreia.maven</groupId> <artifactId>pom</artifactId> - <version>5</version> + <version>9</version> </parent> <groupId>fr.ird.observe</groupId> @@ -36,7 +36,7 @@ <name>ObServe</name> <description>Projet ObServe</description> - <url>http://observe.ultreia.io</url> + <url>https://ultreiaio.gitlab.io/ird-observe</url> <inceptionYear>2008</inceptionYear> <organization> <name>IRD</name> @@ -109,6 +109,11 @@ </developer> </developers> + <issueManagement> + <system>gitlab</system> + <url>https://gitlab.com/ultreia.io/ird-observe</url> + </issueManagement> + <modules> <module>toolbox-maven-plugin</module> <module>topia-extension</module> @@ -148,18 +153,34 @@ </scm> <distributionManagement> - <site> - <id>doc.ultreia.io</id> + <site> + <id>gitlab.com</id> + <url>scm:git:https://git@gitlab.com/${organizationId}/${projectId}.git</url> </site> </distributionManagement> <properties> - <organizationId>ultreia.io</organizationId> + <organizationId>ultreiaio</organizationId> <projectId>ird-observe</projectId> + <!-- dev version (for develop purpose --> + <devMode>true</devMode> + + <!--Modèle version--> + <observe.model.version>6.0</observe.model.version> + + <!-- build timestamp configuration --> + <maven.build.timestamp.format>dd/MM/yyyy HH:mm z</maven.build.timestamp.format> + <buildDate>${maven.build.timestamp}</buildDate> + + <mavenVersion>3.3.9</mavenVersion> + + <gitlabPluginVersion>1.0.7</gitlabPluginVersion> <eugenePluginVersion>3.0-alpha-10</eugenePluginVersion> <processorPluginVersion>1.3</processorPluginVersion> + <licensePluginVersion>1.9</licensePluginVersion> + <jaxxVersion>3.0-alpha-6</jaxxVersion> <nuitonI18nVersion>3.6.3</nuitonI18nVersion> <nuitonConfigVersion>3.2</nuitonConfigVersion> @@ -173,14 +194,9 @@ <sl4jVersion>1.7.23</sl4jVersion> <swingXVersion>1.6.5-1</swingXVersion> <reflectionsVersion>0.9.10</reflectionsVersion> - <webmotionVersion>2.5.1</webmotionVersion> <httpComponentsVersion>4.5.3</httpComponentsVersion> - <licensePluginVersion>1.9</licensePluginVersion> - - <mavenVersion>3.3.9</mavenVersion> - <!-- license header configuration --> <license.licenseName>gpl_v3</license.licenseName> <license.organizationName>IRD, Code Lutin, Ultreia.io</license.organizationName> @@ -199,7 +215,6 @@ <locales>fr</locales> <generateSitemap>true</generateSitemap> <relativizeDecorationLinks>false</relativizeDecorationLinks> - <helper.distributionSiteUrlPrefix>scpexe://ultreia.io/var/www/observe</helper.distributionSiteUrlPrefix> <!--Gitlab configuration--> <gitlab.changesTitle>ObServe changelog</gitlab.changesTitle> @@ -207,12 +222,8 @@ <gitlab.changesAuthorEmail>dev@tchemit.fr</gitlab.changesAuthorEmail> <gitlab.trackers>Anomalie,Evolution,Tâche</gitlab.trackers> - <maven.build.timestamp.format>dd/MM/yyyy HH:mm z</maven.build.timestamp.format> - <buildDate>${maven.build.timestamp}</buildDate> - <devMode>true</devMode> - - <!--Modèle version--> - <observe.model.version>6.0</observe.model.version> + <!--gitflow configuration--> + <scmCommentPrefix>Release [skip ci]</scmCommentPrefix> <!-- deploy nothing --> <maven.deploy.skip>true</maven.deploy.skip> @@ -775,7 +786,6 @@ <pluginManagement> <plugins> - <!-- plugin site --> <plugin> <artifactId>maven-site-plugin</artifactId> <dependencies> @@ -803,6 +813,24 @@ </plugin> <plugin> + <artifactId>maven-scm-publish-plugin</artifactId> + <configuration> + <pubScmUrl>${project.distributionManagement.site.url}</pubScmUrl> + <scmBranch>pages</scmBranch> + <content>${project.reporting.outputDirectory}</content><!-- mono-module doesn't require site:stage --> + </configuration> + <executions> + <execution> + <id>scm-publish</id> + <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin --> + <goals> + <goal>publish-scm</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> <groupId>org.codehaus.gmavenplus</groupId> <artifactId>gmavenplus-plugin</artifactId> <dependencies> @@ -874,14 +902,6 @@ </plugins> </pluginManagement> - <extensions> - <!-- Enabling the use of scpexe with maven 3.0 --> - <extension> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-ssh-external</artifactId> - <version>1.0</version> - </extension> - </extensions> </build> <reporting> @@ -938,6 +958,7 @@ <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>${projectInfoReportsPluginVersion}</version> + <inherited>false</inherited> <reportSets> <reportSet> <reports> @@ -962,29 +983,40 @@ <plugin> <artifactId>maven-changes-plugin</artifactId> <version>${changesPluginVersion}</version> + <inherited>false</inherited> <configuration> <issueLinkTemplatePerSystem> - <gitlab>https://gitlab.com/ultreia.io/${projectId}/issues/%ISSUE%</gitlab> + <gitlab>https://gitlab.com/${organizationId}/${projectId}/issues/%ISSUE%</gitlab> </issueLinkTemplatePerSystem> <xmlPath>${project.build.directory}/generated-site/changes.xml</xmlPath> </configuration> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + </reports> + </reportSet> + </reportSets> </plugin> <plugin> <artifactId>maven-changelog-plugin</artifactId> <version>${changelogPluginVersion}</version> + <inherited>false</inherited> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <version>${licensePluginVersion}</version> + <inherited>false</inherited> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>versions-maven-plugin</artifactId> <version>${versionsPluginVersion}</version> + <inherited>false</inherited> <reportSets> <reportSet> <reports> @@ -1044,20 +1076,6 @@ </executions> </plugin> - <plugin> - <groupId>org.nuiton</groupId> - <artifactId>helper-maven-plugin</artifactId> - <executions> - <execution> - <id>compute-distribution-site-url</id> - <goals> - <goal>compute-distribution-site-url</goal> - </goals> - <phase>pre-site</phase> - </execution> - </executions> - </plugin> - </plugins> </build> ===================================== src/site/resources/images/architecture.png → src/site/resources/img/architecture.png ===================================== Binary files a/src/site/resources/images/architecture.png and b/src/site/resources/img/architecture.png differ ===================================== src/site/resources/images/architecture.svg → src/site/resources/img/architecture.svg ===================================== --- a/src/site/resources/images/architecture.svg +++ b/src/site/resources/img/architecture.svg ===================================== src/site/resources/images/logos/argouml-logo.png → src/site/resources/img/argouml-logo.png ===================================== Binary files a/src/site/resources/images/logos/argouml-logo.png and b/src/site/resources/img/argouml-logo.png differ ===================================== src/site/resources/images/logos/jaxx-logo.png → src/site/resources/img/jaxx-logo.png ===================================== Binary files a/src/site/resources/images/logos/jaxx-logo.png and b/src/site/resources/img/jaxx-logo.png differ ===================================== src/site/resources/images/logo-small.png → src/site/resources/img/logo-small.png ===================================== Binary files a/src/site/resources/images/logo-small.png and b/src/site/resources/img/logo-small.png differ ===================================== src/site/resources/images/logo.png → src/site/resources/img/logo.png ===================================== Binary files a/src/site/resources/images/logo.png and b/src/site/resources/img/logo.png differ ===================================== src/site/resources/images/logos/logo_IntelliJIDEA.png → src/site/resources/img/logo_IntelliJIDEA.png ===================================== Binary files a/src/site/resources/images/logos/logo_IntelliJIDEA.png and b/src/site/resources/img/logo_IntelliJIDEA.png differ ===================================== src/site/resources/images/logo_ird.png → src/site/resources/img/logo_ird.png ===================================== Binary files a/src/site/resources/images/logo_ird.png and b/src/site/resources/img/logo_ird.png differ ===================================== src/site/resources/images/logos/topia-logo.png → src/site/resources/img/topia-logo.png ===================================== Binary files a/src/site/resources/images/logos/topia-logo.png and b/src/site/resources/img/topia-logo.png differ ===================================== src/site/resources/site.js deleted ===================================== --- a/src/site/resources/site.js +++ /dev/null @@ -1,285 +0,0 @@ -/*- - * #%L - * ObServe - * %% - * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io - * %% - * 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% - */ -$(document).ready(function () { - - var metas = $('#mavenProjectProperties'); - - if (metas.length == 0) { - return; - } - - $.debugOn = function () { - $('#mavenProjectProperties').attr('DEBUG', true); - }; - - $.debugOff = function () { - $('#mavenProjectProperties').attr('DEBUG', null); - }; - - var debug = function (metas) { - return metas.attr('DEBUG'); - }; - - var urlParameters = decodeURIComponent(window.location.search.slice(1)) - .split('&') - .reduce(function _reduce(a, b) { - b = b.split('='); - a[b[0]] = b[1]; - return a; - }, {}); - - if (urlParameters.debug) { - $.debugOn(); - } - - var projectId = metas.attr('projectId'); - var version = metas.attr('version'); - var locale = metas.attr('locale'); - - var rootUrl= 'http://' + window.location.hostname ; - var useDocUrl = false; - var localeInPath = window.location.pathname.indexOf('/' + locale + '/') > -1; - - var DEBUG = debug(metas); - - if (DEBUG) { - console.info("localeInPath: " + localeInPath); - } - - var addVersion = function (metas) { - - var DEBUG = debug(metas); - - var versionsUrl = rootUrl + '/versions'; - - $.get(versionsUrl) - .fail(function () { - console.error("can't load url: " + versionsUrl); - }) - .done(function (allVersions) { - - if (DEBUG) { - console.info("Versions url: " + versionsUrl); - console.info("All versions: " + allVersions); - } - - var labels; - if ('en' == locale) { - labels = {develop: 'in progress', latest: 'latest release'}; - } else { - labels = {develop: 'en cours', latest: 'dernière stable'}; - } - var versions = allVersions.split(' '); - if (DEBUG) { - console.info("Versions : " + versions); - console.info("version : " + version); - } - var versionsHtml = "<select id='versions' class='versions pull-left'>"; - $(versions).each(function (index, value) { - value = value.trim(); - var label; - if ('develop' == value || 'latest' == value) { - label = labels[value]; - } else { - label = value; - } - - if (DEBUG) { - console.info("Version to add " + label + " (" + value + ")"); - } - versionsHtml += "<option value='" + value + "'"; - if (version == value) { - versionsHtml += " selected='selected'"; - } - versionsHtml += ">Version " + label + "</option>"; - }); - versionsHtml += "</select><span class='divider'>»</span>"; - - $('#breadcrumbs').find('> ul > li:nth-child(2)').html(versionsHtml); - $('#versions').change(function () { - var DEBUG = debug(metas); - var newVersion = $(this).val(); - var newUrl = rootUrl + '/' + newVersion; - if (localeInPath) { - newUrl += "/" + locale; - } - if (DEBUG) { - console.info("Change to version: " + newUrl); - } - window.location = newUrl; - }); - - }); - - }; - - var addScmwebeditor = function (metas) { - - var editorUrl = 'https://scmwebeditor.nuiton.org/scmwebeditor/edit.action'; - - if ('develop' != version) { - return; - } - - var skipDefaultFiles = [ - "project-info.html", - "team-list.html", - "mail-lists.html", - "integration.html", - "issue-tracking.html", - "license.html", - "source-repository.html", - "dependencies.html", - "dependency-info.html", - "dependency-convergence.html", - "plugin-management.html", - "plugins.html", - "dependency-management.html", - "project-summary.html", - "project-reports.html", - "dev-activity.html", - "file-activity.html", - "changelog.html", - "surefire-report.html", - "third-party-report.html", - "sonar.html", - "dependency-updates-report.html", - "plugin-updates-report.html", - "property-updates-report.html", - "changes-report.html", - "redmine-report.html", - "application-config-report.html" - ]; - - var DEBUG = debug(metas); - - var scm = 'https://gitlab.com/ultreia.io/observe.git'; - - if (DEBUG) { - console.info('scm: ' + scm); - } - - var sourcesType = metas.attr('sourcesType'); - - var pathname = document.location.pathname; - - // remove prefix - if (useDocUrl) { - pathname = pathname.replace('/' + projectId + '/develop', ''); - } else { - pathname = pathname.replace('/develop', ''); - } - - if (DEBUG) { - console.info('pathname: ' + pathname); - } - - var path; - if (pathname.indexOf('target/site') > 0) { - path = pathname.substr(pathname.indexOf('/site')). replace('/site/', ''); - } else { - if (pathname == '/' || pathname == '') { - // on / page - path = 'index.html'; - } else { - path = pathname; - } - } - - if (localeInPath) { - - // locale detected in path (means not default locale) - // remove locale from path - path = path.substr(('/' + locale).length); - } - - if (DEBUG) { - console.info('path: ' + path); - } - if ($.inArray(path, skipDefaultFiles) > -1) { - // skip this file - if (DEBUG) { - console.info('skipDefaultFiles: ' + path); - } - return; - } - - var skipFiles = metas.attr('scmwebeditor_skipFiles'); - if (skipFiles && skipFiles.indexOf(',' + path + ',') > -1) { - // skip this file - if (DEBUG) { - console.info('skipFiles: ' + path); - } - return; - } - - path = path.replace('.html', ''); - if (path.indexOf('/') == 0) { - path = path.substr(1); - } - - var vmFiles = metas.attr('scmwebeditor_vmFiles'); - - // add vm on vmFiles - if (vmFiles && vmFiles.indexOf(',' + path + ',') > -1) { - if (DEBUG) { - console.info("Found vm file: " + path); - } - path += '.' + sourcesType + '.vm'; - } else { - if (DEBUG) { - console.info("Not found vm file: " + path); - } - path += '.' + sourcesType; - } - - if (DEBUG) { - console.info('final path: ' + path); - } - - var address = scm + "/src/site"; - if (localeInPath) { - address += '/' + locale; - } - address += '/' + sourcesType + '/' + path; - if (DEBUG) { - console.info('address: ' + address); - } - var url = editorUrl + "?scmType=Git&selectedBranch=develop&repositoryRoot=" + scm + "&address=" + address; - - if (DEBUG) { - console.info('edit url: ' + url); - } - - $('#publishDate').prepend( - "<li class='pull-right'><a target='edit' href='" + url + - "'>Éditer la page</a></li>" + - "<li class='divider pull-right'>|</li>" - ); - - }; - - addScmwebeditor(metas); - - addVersion(metas); - -}); \ No newline at end of file ===================================== src/site/site_fr.xml ===================================== --- a/src/site/site_fr.xml +++ b/src/site/site_fr.xml @@ -48,35 +48,26 @@ <bannerLeft> <name>${project.name}</name> - <src>${project.url}/${siteDeployClassifier}/images/logo-small.png</src> + <src>./img/logo-small.png</src> <href>index.html</href> </bannerLeft> <poweredBy> - - <logo href="http://jaxx.nuiton.org" name="JAXX" width="120" - img="${project.url}/${siteDeployClassifier}/images/logos/jaxx-logo.png"/> - <logo href="http://topia.nuiton.org" name="ToPIA" width="120" - img="${project.url}/${siteDeployClassifier}/images/logos/topia-logo.png"/> - <logo href="http://argouml.tigris.org/" name="ArgoUML" width="120" - img="${project.url}/${siteDeployClassifier}/images/logos/argouml-logo.png"/> - <logo href="https://www.jetbrains.com/idea" name="IntelliJ" width="120" - img="${project.url}/${siteDeployClassifier}/images/logos/logo_IntelliJIDEA.png"/> - + <logo href="http://jaxx.nuiton.org" name="JAXX" width="120" img="./img/jaxx-logo.png"/> + <logo href="http://topia.nuiton.org" name="ToPIA" width="120" img="./img/topia-logo.png"/> + <logo href="http://argouml.tigris.org/" name="ArgoUML" width="120" img="./img/argouml-logo.png"/> + <logo href="https://www.jetbrains.com/idea" name="IntelliJ" img="./img/logo_IntelliJIDEA.png"/> </poweredBy> <body> - <head> <![CDATA[ <script type="text/javascript" src="site.js"> </script><link rel="stylesheet" type="text/css" href="http://common.nuiton.org/dev/css/mavenpom-site.css"/>]]> </head> - <links> - <item name="Forge" href="https://gitlab.com/ultreia.io/ird-observe"/> + <item name="GitLab" href="https://gitlab.com/ultreiaio/ird-observe"/> <item name="Ultreia.io" href="http://ultreia.io"/> </links> <breadcrumbs> <item name="${project.name}" href="${project.url}/index.html"/> - <item name="${project.version}" href="${project.url}/${siteDeployClassifier}/index.html"/> </breadcrumbs> <menu name="Utilisateur"> @@ -84,8 +75,7 @@ <item name="Installation" href="install.html"/> <item name="Administration Obstuna" href="install-serverPG.html"/> <item name="Administration Web" href="administration-web.html"/> - <item name="Téléchargement" href="https://gitlab.com/ultreia.io/observe/wikis/releases"/> - <item name="Historique des versions" href="https://gitlab.com/ultreia.io/ird-observe/blob/develop/CHANGELOG.md"/> + <item name="Historique des versions" href="https://gitlab.com/ultreiaio/ird-observe/blob/develop/CHANGELOG.md"/> <item name="Configuration" href="./config-report.html"/> </menu> @@ -98,7 +88,5 @@ <menu ref="reports"/> - <footer> <![CDATA[<div id='mavenProjectProperties' locale='fr' projectId='${project.projectId}' version='${project.siteDeployClassifier}' sourcesType='md' scmwebeditor_skipFiles=',config-report,' scmwebeditor_vmFiles=",index,"/>]]> </footer> - </body> </project> View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/compare/4a108146f5490d2a887f5de6ce2...