From fdbbe45e1d02a836fc40e919c6c9f13f3e008b71 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 8 Oct 2018 16:05:03 -0400 Subject: Update public xml generator --- artifacts.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'artifacts.gradle') 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(); -- cgit v1.2.3