public class RoutesCompile extends SourceTask
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
RoutesCompile(WorkerExecutor workerExecutor) |
Modifier and Type | Method and Description |
---|---|
ListProperty<String> |
getAdditionalImports()
Returns the additional imports of the Play Routes compiler.
|
Property<Boolean> |
getGenerateReverseRoutes()
Whether a reverse router should be generated.
|
Property<Boolean> |
getInjectedRoutesGenerator()
Is the injected routes generator (
play.routes.compiler.InjectedRoutesGenerator ) used for
generating routes? Default is false. |
Property<Boolean> |
getNamespaceReverseRouter()
Whether the reverse router should be namespaced.
|
DirectoryProperty |
getOutputDirectory()
Returns the directory to generate the parser source files into.
|
Property<PlayPlatform> |
getPlatform() |
ConfigurableFileCollection |
getRoutesCompilerClasspath() |
FileTree |
getSource() |
boolean |
isJavaProject() |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, source
conventionMapping, conventionMapping, getConventionMapping
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConvention
@Inject public RoutesCompile(WorkerExecutor workerExecutor)
@PathSensitive(value=RELATIVE) public FileTree getSource()
getSource
in class SourceTask
@OutputDirectory public DirectoryProperty getOutputDirectory()
@Input public ListProperty<String> getAdditionalImports()
@Classpath public ConfigurableFileCollection getRoutesCompilerClasspath()
@Internal public boolean isJavaProject()
@Internal public Property<PlayPlatform> getPlatform()
@Input public Property<Boolean> getNamespaceReverseRouter()
@Input public Property<Boolean> getGenerateReverseRoutes()
@Input public Property<Boolean> getInjectedRoutesGenerator()
play.routes.compiler.InjectedRoutesGenerator
) used for
generating routes? Default is false.