Removed version from build config
This commit is contained in:
parent
c33463e801
commit
84dfebf3f6
1 changed files with 2 additions and 3 deletions
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue