Package com.nickbenn.room.gradle
Class Extension
- java.lang.Object
-
- com.nickbenn.room.gradle.Extension
-
public class Extension extends Object
Provides configuration properties for theextractRoomDdl
Gradle task. Currently, these properties are minimal, supporting only the specification ofsource
anddestination
properties; these are set in theroomDdl
section ofbuild.gradle
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_DESTINATION
Default output file path, relative to the consumer project'sbuild.gradle
location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegularFileProperty
getDestination()
Returns the value of thedestination
property, as set in theroomDdl
section ofbuild.gradle
.RegularFileProperty
getSource()
Returns the value of the requiredsource
property, as set in theroomDdl
section ofbuild.gradle
.void
setDestination(String destinationStr)
Sets thedestination
property to the value returned fromproject.file(destinationStr)
.void
setSource(String sourceStr)
Sets thesource
property to the value returned fromproject.file(sourceStr)
.
-
-
-
Field Detail
-
DEFAULT_DESTINATION
public static final String DEFAULT_DESTINATION
Default output file path, relative to the consumer project'sbuild.gradle
location.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
public RegularFileProperty getSource()
Returns the value of the requiredsource
property, as set in theroomDdl
section ofbuild.gradle
.
-
setSource
public void setSource(String sourceStr)
Sets thesource
property to the value returned fromproject.file(sourceStr)
.- Parameters:
sourceStr
-
-
getDestination
public RegularFileProperty getDestination()
Returns the value of thedestination
property, as set in theroomDdl
section ofbuild.gradle
. If not set, then the default value is read fromDEFAULT_DESTINATION
.
-
setDestination
public void setDestination(String destinationStr)
Sets thedestination
property to the value returned fromproject.file(destinationStr)
.- Parameters:
destinationStr
-
-
-