/ Published in: Groovy

Groovy script that creates an XML file using an XML template containing ${params} and a standard Java Properties file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import groovy.text.XmlTemplateEngine import java.util.Properties import java.io.File import java.io.FileWriter //Takes a java props file, an XML template file and creates the given output file // read properties file given // map to the bindings bindings[prop]=props.getProperty(prop) } // create the template and make the output file }
Comments
