You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2017/09/06 15:50:59 UTC
[4/6] syncope git commit: Parachute for builds not from GIT repo
Parachute for builds not from GIT repo
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/cb6f0cfb
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/cb6f0cfb
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/cb6f0cfb
Branch: refs/heads/master
Commit: cb6f0cfbef6144bf091d0a9c05e03b9680c260d9
Parents: 00ef003
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Wed Sep 6 17:50:25 2017 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Wed Sep 6 17:50:35 2017 +0200
----------------------------------------------------------------------
.../java/org/apache/syncope/client/console/pages/BasePage.java | 6 ++++--
pom.xml | 3 +++
2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/cb6f0cfb/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java b/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
index e7ec23c..fad2ac1 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
@@ -107,8 +107,10 @@ public class BasePage extends WebPage implements IAjaxIndicatorAware {
// right sidebar
PlatformInfo platformInfo = SyncopeConsoleSession.get().getPlatformInfo();
Label version = new Label("version", platformInfo.getVersion());
- String versionLink = platformInfo.getVersion().endsWith("-SNAPSHOT")
- ? "https://git-wip-us.apache.org/repos/asf?p=syncope.git;a=commit;h=" + platformInfo.getBuildNumber()
+ String versionLink = StringUtils.isNotBlank(platformInfo.getBuildNumber())
+ && platformInfo.getVersion().endsWith("-SNAPSHOT")
+ ? "https://git-wip-us.apache.org/repos/asf?p=syncope.git;a=commit;h="
+ + platformInfo.getBuildNumber()
: "https://cwiki.apache.org/confluence/display/SYNCOPE/Jazz";
version.add(new AttributeModifier("onclick", "window.open('" + versionLink + "', '_blank')"));
body.add(version);
http://git-wip-us.apache.org/repos/asf/syncope/blob/cb6f0cfb/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 5167de0..180f066 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1983,6 +1983,9 @@ under the License.
project.properties['licenseUrl'] = project.parent.licenses[0].url
project.properties['site.deploymentBaseDir'] =
project.properties['site.deploymentBaseUrl'] == null || !project.properties['site.deploymentBaseUrl'].startsWith('file:') ? project.properties['project.build.directory'] + "/generated-docs" : project.properties['site.deploymentBaseUrl'].substring(7)
+
+ if (!project.properties.containsKey('buildNumber'))
+ project.properties['buildNumber'] = ""
</source>
</configuration>
</execution>