diff options
author | Allan Wang <me@allanwang.ca> | 2018-10-08 16:05:03 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2018-10-08 16:05:03 -0400 |
commit | fdbbe45e1d02a836fc40e919c6c9f13f3e008b71 (patch) | |
tree | 657ae79948d9113f390b8633cd4dfafb5cb16112 /artifacts.gradle | |
parent | 81739fa76510003b2acc51822d1e9258ddc8d536 (diff) | |
download | kau-fdbbe45e1d02a836fc40e919c6c9f13f3e008b71.tar.gz kau-fdbbe45e1d02a836fc40e919c6c9f13f3e008b71.tar.bz2 kau-fdbbe45e1d02a836fc40e919c6c9f13f3e008b71.zip |
Update public xml generator
Diffstat (limited to 'artifacts.gradle')
-rw-r--r-- | artifacts.gradle | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/artifacts.gradle b/artifacts.gradle index c0c344a..ab291f7 100644 --- a/artifacts.gradle +++ b/artifacts.gradle @@ -31,8 +31,6 @@ artifacts { // We assume resources within res-public are public task generatepublicxml { - println "Generating public XML" - def resDir = project.projectDir.absolutePath + "/src/main/res-public" def publicFolder = file(resDir + "/values") @@ -51,10 +49,12 @@ task generatepublicxml { '**/values/*.xml' ], exclude: '**/public.xml' - ); + ) + + println "Generating public XML: ${project.name}" // Create new public.xml with writer - new File(resDir + "/values/public.xml").withWriter { writer -> + file(resDir + "/values/public.xml").withWriter { writer -> // Create MarkupBuilder with 4 space indent def destXml = new MarkupBuilder(new IndentPrinter(writer, " ", true)); def destXmlMkp = destXml.getMkp(); |