Properties Loader

This loader reads the file as a Java properties file and returns a Java properties object. Within MillScript this can generally be used like any other map. The only distinction is that the properties object does not have a modifiable default like other MillScript maps.

File Format

The file format is that specified by the Java API. However in most cases it would be used to load files like the following:

property1 = some thing
# The next property is useful
property2 = some thing else
        

The whitespace surrounding the = is ignored, so the property key on the first line would be property1, while the value would be some thing.

Lines starting with the hash mark # are treated as comments and ignored.

Use

  1. Create an prop file in your inventory, containing all the required properties, as detailed in the file format. e.g Lets assume you create a file called someprops.prop.
  2. To use the connection within a script, we just have to refer to the name of the properties file, e.g.
    someprops
                
    and this will load the connection for us. We can now refer to properties in the file in the same manner as we would use any other map.

Notes