Class TaskGenerateTsDefinitions
java.lang.Object
com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommand
io.jmix.flowui.devserver.frontend.AbstractTaskClientGenerator
io.jmix.flowui.devserver.frontend.TaskGenerateTsDefinitions
- All Implemented Interfaces:
- com.vaadin.flow.server.frontend.FallibleCommand
Generate 
types.d.ts if it is missing in project folder and
 tsconfig.json exists in project folder.- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static booleanKeeps track of whether a warning update has already been logged.
- 
Method SummaryMethods inherited from class com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommandsetGeneratedFileSupport, track, track, writeIfChanged, writeIfChanged
- 
Field Details- 
warningEmittedprotected static boolean warningEmittedKeeps track of whether a warning update has already been logged. This is used to avoid spamming the log with the same message.
 
- 
- 
Method Details- 
executepublic void execute() throws com.vaadin.flow.server.ExecutionFailedException- Specified by:
- executein interface- com.vaadin.flow.server.frontend.FallibleCommand
- Overrides:
- executein class- AbstractTaskClientGenerator
- Throws:
- com.vaadin.flow.server.ExecutionFailedException
 
- 
getFileContentDescription copied from class:AbstractTaskClientGeneratorGet file content for writing to the generated file.- Specified by:
- getFileContentin class- AbstractTaskClientGenerator
- Returns:
- content of the file.
- Throws:
- IOException- if IO error happens while reading file content.
 
- 
getGeneratedFileDescription copied from class:AbstractTaskClientGeneratorGet the generated file where content will be written.- Specified by:
- getGeneratedFilein class- AbstractTaskClientGenerator
- Returns:
- the generated file.
 
- 
shouldGenerateprotected boolean shouldGenerate()Description copied from class:AbstractTaskClientGeneratorCheck if it should generate the file or not.- Specified by:
- shouldGeneratein class- AbstractTaskClientGenerator
- Returns:
- true if it should generate, false otherwise.
 
 
-