Package com.nickbenn.room.gradle
Class Extension
- java.lang.Object
-
- com.nickbenn.room.gradle.Extension
-
public class Extension extends Object
Provides configuration properties for theextractRoomDdlGradle task. Currently, these properties are minimal, supporting only the specification ofsourceanddestinationproperties; these are set in theroomDdlsection ofbuild.gradle.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_DESTINATIONDefault output file path, relative to the consumer project'sbuild.gradlelocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegularFilePropertygetDestination()Returns the value of thedestinationproperty, as set in theroomDdlsection ofbuild.gradle.RegularFilePropertygetSource()Returns the value of the requiredsourceproperty, as set in theroomDdlsection ofbuild.gradle.voidsetDestination(String destinationStr)Sets thedestinationproperty to the value returned fromproject.file(destinationStr).voidsetSource(String sourceStr)Sets thesourceproperty 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.gradlelocation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
public RegularFileProperty getSource()
Returns the value of the requiredsourceproperty, as set in theroomDdlsection ofbuild.gradle.
-
setSource
public void setSource(String sourceStr)
Sets thesourceproperty to the value returned fromproject.file(sourceStr).- Parameters:
sourceStr-
-
getDestination
public RegularFileProperty getDestination()
Returns the value of thedestinationproperty, as set in theroomDdlsection ofbuild.gradle. If not set, then the default value is read fromDEFAULT_DESTINATION.
-
setDestination
public void setDestination(String destinationStr)
Sets thedestinationproperty to the value returned fromproject.file(destinationStr).- Parameters:
destinationStr-
-
-