Class Extension


  • public class Extension
    extends Object
    Provides configuration properties for the extractRoomDdl Gradle task. Currently, these properties are minimal, supporting only the specification of source and destination properties; these are set in the roomDdl section of build.gradle.
    • Field Detail

      • DEFAULT_DESTINATION

        public static final String DEFAULT_DESTINATION
        Default output file path, relative to the consumer project's build.gradle location.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Extension

        @Inject
        public Extension​(Project project)
        Initializes this extension instance. This is only invoked by Gradle itself, not by the plugin or its consumers.
        Parameters:
        project - Project instance injected by Gradle.
    • Method Detail

      • getSource

        public RegularFileProperty getSource()
        Returns the value of the required source property, as set in the roomDdl section of build.gradle.
      • setSource

        public void setSource​(String sourceStr)
        Sets the source property to the value returned from project.file(sourceStr).
        Parameters:
        sourceStr -
      • getDestination

        public RegularFileProperty getDestination()
        Returns the value of the destination property, as set in the roomDdl section of build.gradle. If not set, then the default value is read from DEFAULT_DESTINATION.
      • setDestination

        public void setDestination​(String destinationStr)
        Sets the destination property to the value returned from project.file(destinationStr).
        Parameters:
        destinationStr -