An open API service indexing awesome lists of open source software.

https://github.com/cakemc-network/custom-properties

:book: cakemc's own file format for properties
https://github.com/cakemc-network/custom-properties

Last synced: 3 months ago
JSON representation

:book: cakemc's own file format for properties

Awesome Lists containing this project

README

        

# Custom CakeMC file Format
this format is used for config files and properties

````java
/**
* Main method to demonstrate the usage of CakeProperties.
*
* @param args command line arguments (unused)
*/
public static void main(String[] args) {
try {
CakeProperties cakeProperties = new CakeProperties("test.properties");

// Add or update properties
cakeProperties.append("test.message.first", "1");
cakeProperties.append("test.message.second", "2");

// Retrieve or create a new property
String value = cakeProperties.getOrCreate("test.message.third", "3");

cakeProperties.append("owo.message.first", "test");

System.out.println("test.message.third = " + value);

} catch (IOException e) {
e.printStackTrace();
}
}
````

the file created will look like this:

```
test.message
first = "1"
second = "2"
third = "3"

owo.message
first = "test"

```