< Back
Set-JavaProperties
Post
NAME Set-JavaProperties
SYNOPSIS
Updates a java property file based on the provided hashtable
SYNTAX
Set-JavaProperties [-PropertyFilePath] <String> [-Properties] <Hashtable> [-DoNotAppend] [<CommonParameters>]
DESCRIPTION
Updates a java property file based on the provided hashtable. It allows to either append new Properties or only
modify existing ones.
PARAMETERS
-PropertyFilePath <String>
The path to the property file that will be modified.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Properties <Hashtable>
Hashtable containing the properties to set
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DoNotAppend [<SwitchParameter>]
Specifies if new properties should be appended
Required? false
Position? named
Default value False
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Add new properties to a file
Set-JavaProperties "C:\\myprops.properties" @{"newProp1":"newValue1"}
RELATED LINKS
SYNOPSIS
Updates a java property file based on the provided hashtable
SYNTAX
Set-JavaProperties [-PropertyFilePath] <String> [-Properties] <Hashtable> [-DoNotAppend] [<CommonParameters>]
DESCRIPTION
Updates a java property file based on the provided hashtable. It allows to either append new Properties or only
modify existing ones.
PARAMETERS
-PropertyFilePath <String>
The path to the property file that will be modified.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Properties <Hashtable>
Hashtable containing the properties to set
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DoNotAppend [<SwitchParameter>]
Specifies if new properties should be appended
Required? false
Position? named
Default value False
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Add new properties to a file
Set-JavaProperties "C:\\myprops.properties" @{"newProp1":"newValue1"}
RELATED LINKS