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.PropertiesSourceTODO Would be nice to combine PropertySource and PropertiesSource, if possible.
-
-
Constructor Summary
Constructors Constructor Description ProjectPropertySource(org.gradle.api.Project project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.PropertiesgetProperties()Build the Properties instance each time this is called, ensuring we get the latest set of properties from the Gradle Project.java.lang.StringgetProperty(java.lang.String name)
-
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String name)
- Specified by:
getPropertyin interfacecom.marklogic.mgmt.util.PropertySource
-
getProperties
public java.util.Properties 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
-
-