Class 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 
      Constructor Description
      ProjectPropertySource​(org.gradle.api.Project project)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      java.lang.String getProperty​(java.lang.String name)  
      • Methods inherited from class com.marklogic.client.ext.helper.LoggingObject

        format
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProjectPropertySource

        public ProjectPropertySource​(org.gradle.api.Project project)
    • Method Detail

      • getProperty

        public java.lang.String getProperty​(java.lang.String name)
        Specified by:
        getProperty in interface com.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:
        getProperties in interface com.marklogic.client.ext.tokenreplacer.PropertiesSource