From e4e666379a7143e7fe9c7a11b052a8a1bd3e8430 Mon Sep 17 00:00:00 2001 From: acetousk Date: Thu, 11 Jul 2024 22:15:42 -0600 Subject: [PATCH] Fix MoquiConf.xml generation --- build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 1d8aa0bc3..eec1d0346 100644 --- a/build.gradle +++ b/build.gradle @@ -901,13 +901,17 @@ task createComponent { print "\n\n" println "Select rest api (r), screens (s), or both (B):" def componentInput = System.in.newReader().readLine() - logger.warn("componentInput: ${componentInput}") - logger.warn("componentInput: ${componentInput == ''}") if (componentInput == 'r') { new File(newComponent, 'screen').deleteDir() new File(newComponent, 'template').deleteDir() new File(newComponent, 'data/AppSeedData.xml').delete() + new File(newComponent, 'MoquiConf.xml').delete() + def moquiConf = new File(newComponent, 'MoquiConf.xml') + moquiConf.append("\n" + + "\n" + + "\n" + + "") println "Selected rest api so, deleted screen, template, and AppSeedData.xml\n" } else if (componentInput == 's') { new File(newComponent, "services/${component}.rest.xml").delete()