Package com.helixframework.gradle
Class GradleProperties
java.lang.Object
com.helixframework.gradle.GradleProperties
The GradleProperties class provides methods for retrieving user properties from the Gradle configuration file.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddGlobalProperty(String key, String value) Adds a property to the Gradle global configuration file.static PropertiesRetrieves the user properties from the global configuration file.static PropertiesgetProperties(File projectDir) Retrieves the user properties from the project configuration file and the global configuration file.
-
Method Details
-
getGlobalProperties
Retrieves the user properties from the global configuration file.- Returns:
- the user properties as a
Propertiesobject - Throws:
IOException- if an I/O error occurs while reading the configuration file
-
addGlobalProperty
Adds a property to the Gradle global configuration file.- Parameters:
key- the key of the propertyvalue- the value of the property- Throws:
IOException- if an I/O error occurs while writing to the configuration file
-
getProperties
Retrieves the user properties from the project configuration file and the global configuration file.- Parameters:
projectDir- gradle project directory- Returns:
- the user properties as a
Propertiesobject - Throws:
IOException- if an I/O error occurs while reading the configuration file
-