com.vaadin.flow.server.frontend.
Class TaskGenerateTsConfig
- java.lang.Object
-
- com.vaadin.flow.server.frontend.AbstractTaskClientGenerator
-
- com.vaadin.flow.server.frontend.TaskGenerateTsConfig
-
All Implemented Interfaces:
public class TaskGenerateTsConfig extends AbstractTaskClientGenerator
Generate
tsconfig.json
if it is missing in project folder.For internal use only. May be renamed or removed in a future release.
Since:
3.0
-
-
Method Summary
All Methods Modifier and Type Method Description void
execute()
Runs the given command.
protected String
getFileContent()
Get file content for writing to the generated file.
protected File
getGeneratedFile()
Get the generated file where content will be written.
protected boolean
shouldGenerate()
Check if it should generate the file or not.
-
-
-
Method Detail
-
getFileContent
protected String getFileContent() throws IOException
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.
-
execute
public void execute() throws ExecutionFailedException
Description copied from interface:
FallibleCommand
Runs the given command.
If execution fails then the command may throw an exception which may give a message and a cause of the failure.
Specified by:
execute
in interfaceFallibleCommand
Overrides:
execute
in classAbstractTaskClientGenerator
Throws:
ExecutionFailedException
- if there is an execution error
-
getGeneratedFile
protected File 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.
-
-