Package com.vaadin.flow.server.frontend
Class TaskGenerateIndexTs
java.lang.Object
com.vaadin.flow.server.frontend.AbstractTaskClientGenerator
com.vaadin.flow.server.frontend.TaskGenerateIndexTs
- All Implemented Interfaces:
FallibleCommand
Generate
index.ts
if it is missing in frontend folder.
For internal use only. May be renamed or removed in a future release.
- Since:
- 3.0
-
Method Summary
Methods inherited from class com.vaadin.flow.server.frontend.AbstractTaskClientGenerator
execute
-
Method Details
-
getGeneratedFile
Description copied from class:AbstractTaskClientGenerator
Get the generated file where content will be written.- Specified by:
getGeneratedFile
in classAbstractTaskClientGenerator
- Returns:
- the generated file.
-
shouldGenerate
protected boolean shouldGenerate()Description copied from class:AbstractTaskClientGenerator
Check if it should generate the file or not.- Specified by:
shouldGenerate
in classAbstractTaskClientGenerator
- Returns:
- true if it should generate, false otherwise.
-
getFileContent
Description copied from class:AbstractTaskClientGenerator
Get file content for writing to the generated file.- Specified by:
getFileContent
in classAbstractTaskClientGenerator
- Returns:
- content of the file.
- Throws:
IOException
- if IO error happens while reading file content.
-