Removed version from build config

This commit is contained in:
Georgy Litvinov 2020-12-08 13:41:47 +01:00
parent c33463e801
commit 84dfebf3f6

View file

@ -1,4 +1,3 @@
def releaseVersion = "0.9.11"
task oxt(type: Zip) { task oxt(type: Zip) {
dependsOn = [ 'setVersion','setVersionInBasicCode' ] dependsOn = [ 'setVersion','setVersionInBasicCode' ]
from './' from './'
@ -18,11 +17,11 @@ task oxt(type: Zip) {
task setVersion(){ task setVersion(){
ant.taskdef(name: 'xmltask', classpath: 'buildPlugins/xmltask.jar', classname: 'com.oopsconsultancy.xmltask.ant.XmlTask') ant.taskdef(name: 'xmltask', classpath: 'buildPlugins/xmltask.jar', classname: 'com.oopsconsultancy.xmltask.ant.XmlTask')
ant.xmltask(source: 'description.xml', dest: 'description.xml', report:'true') { ant.xmltask(source: 'description.xml', dest: 'description.xml', report:'true') {
replace(path: "//*[local-name()='version']/@value", withText: "${releaseVersion}") replace(path: "//*[local-name()='version']/@value", withText: "${project.version}")
} }
} }
task setVersionInBasicCode { task setVersionInBasicCode {
ant.replaceregexp(match:'redactionExtensionVersion = ".*"', replace:"redactionExtensionVersion = "${releaseVersion}"", flags:'g', byline:true) { ant.replaceregexp(match:'redactionExtensionVersion = ".*"', replace:"redactionExtensionVersion = "${project.version}"", flags:'g', byline:true) {
fileset(dir: 'Redaction', includes: 'Configuration.xba') fileset(dir: 'Redaction', includes: 'Configuration.xba')
} }
} }