< Back

Get-JavaProperties

Sun Jan 12, 2020 6:00 pm

NAME Get-JavaProperties



SYNOPSIS

Reads a Java-style Properties file and returns a hashtable of its content





SYNTAX

Get-JavaProperties [-PropertyFilePath] <String> [[-PropertyList] <String[]>] [<CommonParameters>]





DESCRIPTION

Retrieves properties from a java property file and returns them as a hashtable. It allows specific properties to

be retrived, in the case the property file is too large





PARAMETERS

-PropertyFilePath <String>

The path to the property file that will be parsed.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PropertyList <String[]>

If specified, only properties in this list will be retrieved



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Collections.Hashtable





-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Get java properties from a file



Get-JavaProperties "C:\\myprops.properties"











RELATED LINKS