Package com.gtnewhorizons.gtnhgradle
Class PropertiesConfiguration.GradleUtils
java.lang.Object
com.gtnewhorizons.gtnhgradle.PropertiesConfiguration.GradleUtils
- Enclosing class:
PropertiesConfiguration
Separate factory functions for
PropertiesConfiguration
construction to allow isolated loading of the
parent class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesConfiguration
makePropertiesFrom
(Settings settings) Fills properties from the root directory's gradle.properties file and command line "-P" properties.static PropertiesConfiguration
makePropertiesFrom
(Project project) Fills properties from the current project's state.
-
Constructor Details
-
GradleUtils
public GradleUtils()
-
-
Method Details
-
makePropertiesFrom
Fills properties from the root directory's gradle.properties file and command line "-P" properties.- Parameters:
settings
- The GradleSettings
object, from a settings pluginPlugin.apply(Object)
parameter- Returns:
- The initialized properties
-
makePropertiesFrom
Fills properties from the current project's state.- Parameters:
project
- The GradleProject
to read the properties from.- Returns:
- The initialized properties
-