diff --git a/build.gradle b/build.gradle index fdc2869..3d2c10d 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,6 @@ +def releaseVersion = "0.7.14" task oxt(type: Zip) { + dependsOn = [ 'setVersion' ] from './' include '*' include '*/*' @@ -12,3 +14,11 @@ task oxt(type: Zip) { exclude 'cleanAndValidate.ox2' archiveName 'cleanAndValidate.oxt' } + +task setVersion(){ + ant.taskdef(name: 'xmltask', classpath: 'buildPlugins/xmltask.jar', classname: 'com.oopsconsultancy.xmltask.ant.XmlTask') + ant.xmltask(source: 'description.xml', dest: 'description.xml', report:'true') { + replace(path: "//*[local-name()='version']/@value", withText: "${releaseVersion}") + } +} + diff --git a/buildPlugins/xmltask.jar b/buildPlugins/xmltask.jar new file mode 100644 index 0000000..b815813 Binary files /dev/null and b/buildPlugins/xmltask.jar differ diff --git a/description.xml b/description.xml index 067a393..b4b5924 100644 --- a/description.xml +++ b/description.xml @@ -1,40 +1,37 @@ - - - - - + + + + + Cleaning and validation documents for publishing in html and epub with pagination Чистка и проверка документов для издания в html и epub с сохранением пагинации - - - + + + - + - + - Georgy Litvinov + Georgy Litvinov - + - - + + - - + + -