public class RewriteLegacyAnnotationsStep extends ClassPathIntrospector
| Constructor and Description |
|---|
RewriteLegacyAnnotationsStep(File compiledClassesDir,
ClassFinder finder,
Collection<File> sourceRoots)
Creates a new instance using the
compiledClassesDir directory (to
filter out classes which belongs to project only, not dependencies),
class finder instance and collection of project source roots to
search Java source files. |
| Modifier and Type | Method and Description |
|---|---|
void |
rewrite()
Search for java files in the project and replace
HtmlImport to
JsModule annotation with updated value. |
doInvokeAnnotationMethod, getAnnotatedClasses, getResource, getSubtypes, invokeAnnotationMethod, loadClassInProjectClassLoaderpublic RewriteLegacyAnnotationsStep(File compiledClassesDir, ClassFinder finder, Collection<File> sourceRoots)
compiledClassesDir directory (to
filter out classes which belongs to project only, not dependencies),
class finder instance and collection of project source roots to
search Java source files.compiledClassesDir - directory with compiled classesfinder - a class findersourceRoots - project source root directoriespublic void rewrite()
HtmlImport to
JsModule annotation with updated value.Copyright © 2000–2025 Vaadin Ltd. All rights reserved.