Package com.marklogic.gradle
Class ProjectPropertySource
java.lang.Object
com.marklogic.client.ext.helper.LoggingObject
com.marklogic.gradle.ProjectPropertySource
- All Implemented Interfaces:
com.marklogic.client.ext.tokenreplacer.PropertiesSource,com.marklogic.mgmt.util.PropertySource
public class ProjectPropertySource
extends com.marklogic.client.ext.helper.LoggingObject
implements com.marklogic.mgmt.util.PropertySource, com.marklogic.client.ext.tokenreplacer.PropertiesSource
TODO Would be nice to combine PropertySource and PropertiesSource, if possible.
-
Field Summary
Fields inherited from class com.marklogic.client.ext.helper.LoggingObject
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild the Properties instance each time this is called, ensuring we get the latest set of properties from the Gradle Project.getProperty(String name) Methods inherited from class com.marklogic.client.ext.helper.LoggingObject
format
-
Constructor Details
-
ProjectPropertySource
public ProjectPropertySource(org.gradle.api.Project project)
-
-
Method Details
-
getProperty
- Specified by:
getPropertyin interfacecom.marklogic.mgmt.util.PropertySource
-
getProperties
Build the Properties instance each time this is called, ensuring we get the latest set of properties from the Gradle Project. This currently only includes properties that start with "ml". This is to avoid picking up very generically-named properties in Gradle, such as "name" and "version", which may conflict with properties from other sources.- Specified by:
getPropertiesin interfacecom.marklogic.client.ext.tokenreplacer.PropertiesSource
-