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

    Modifier and Type
    Method
    Description
    Build the Properties instance each time this is called, ensuring we get the latest set of properties from the Gradle Project.
     

    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 Details

    • ProjectPropertySource

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

    • getProperty

      public String getProperty(String name)
      Specified by:
      getProperty in interface com.marklogic.mgmt.util.PropertySource
    • getProperties

      public 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