Modified build config

This commit is contained in:
Georgy Litvinov 2020-03-11 08:29:06 +01:00
parent c3c216715c
commit 8f3a3263ed

View file

@ -83,7 +83,7 @@ task xhtml(type: Jar) {
task oxt(type: Zip){
dependsOn = [ 'xhtml', 'setVersion' ]
archiveName 'w2phtml.oxt'
from 'src/main/oxt/writer2xhtml'
from 'src/main/oxt'
include '*'
include '**'
from 'build/libs/writer2xhtml-filter.jar'
@ -93,7 +93,7 @@ task oxt(type: Zip){
}
task setVersion(){
ant.taskdef(name: 'xmltask', classpath: 'buildPlugins/xmltask.jar', classname: 'com.oopsconsultancy.xmltask.ant.XmlTask')
ant.xmltask(source: 'src/main/oxt/writer2xhtml/description.xml', dest: 'src/main/oxt/writer2xhtml/description.xml', report:'true') {
ant.xmltask(source: 'src/main/oxt/description.xml', dest: 'src/main/oxt/description.xml', report:'true') {
replace(path: "//*[local-name()='version']/@value", withText: "${releaseVersion}")
}
}