Package com.diffplug.gradle
Class ConfigMisc
- java.lang.Object
-
- com.diffplug.gradle.ConfigMisc
-
public class ConfigMisc extends Object
Utilities for creating configuration content.
-
-
Constructor Summary
Constructors Constructor Description ConfigMisc()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
loadProps(File file)
static void
modifyXmlInPlace(File file, Action<XmlProvider> action)
Creates an XML string from a groovy.util.Node.static void
writeProps(Map<String,String> map, File dest)
Creates an XML string from a groovy.util.Node.
-
-
-
Method Detail
-
modifyXmlInPlace
public static void modifyXmlInPlace(File file, Action<XmlProvider> action) throws IOException
Creates an XML string from a groovy.util.Node.- Throws:
IOException
-
writeProps
public static void writeProps(Map<String,String> map, File dest) throws IOException
Creates an XML string from a groovy.util.Node.- Throws:
IOException
-
loadProps
public static Map<String,String> loadProps(File file) throws IOException
- Throws:
IOException
-
-