From 42597f0bc4f69a00a96cb1156cd7668bf4c224d8 Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sun, 9 Aug 2015 13:32:46 -0400 Subject: [PATCH] sdk build: generate spec version based on GIT revision --- sdk/build.gradle | 6 ++- sdk/build.xml | 99 +++--------------------------------------------- 2 files changed, 9 insertions(+), 96 deletions(-) diff --git a/sdk/build.gradle b/sdk/build.gradle index b70e80b13..19dd1c9a4 100644 --- a/sdk/build.gradle +++ b/sdk/build.gradle @@ -388,12 +388,14 @@ copyTestSources.outputs.dir "JME3TestsTemplate/src/" copyTestSources.outputs.dir "JME3TestsTemplateAndroid/src/" ant.properties['plugins.version'] = jmeVersion -ant.properties['app.version']= jmeMainVersion + "-" + jmeVersionTag +ant.properties['app.version']= jmeFullVersion +ant.properties['git.revision']= jmeRevision task buildSdk(dependsOn: [copyBaseLibs, copyProjectLibs, createProjectXml, createBaseXml, copyTestSources]) <<{ ant.propertyfile(file: "nbproject/project.properties") { entry( key: "plugins.version", value: "${jmeVersion}") - entry( key: "app.version", value: "${jmeMainVersion + "-" + jmeVersionTag}") + entry( key: "app.version", value: "${jmeFullVersion}") + entry( key: "git.revision", value: "${jmeRevision}") } ant.ant(dir: ".", antfile: "build.xml", target: "build") } diff --git a/sdk/build.xml b/sdk/build.xml index acc5c1d04..e81b221c5 100644 --- a/sdk/build.xml +++ b/sdk/build.xml @@ -176,9 +176,6 @@ - - - @@ -191,105 +188,19 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Setting implementation version for ${module_dir} to revision: ${svn.LastChangedRev} - + Setting implementation version for ${module_dir} to revision: ${git.revision} + - Removing implementation version for ${module_dir} from revision: ${svn.LastChangedRev} - + Removing implementation version for ${module_dir} from revision: ${git.revision} + - - - - - - - - - - - - - - - - - - - - - - - - - -