From 34f18cdda64c38521a48d797f285180fd0ca5a1e Mon Sep 17 00:00:00 2001 From: tsantalis Date: Sat, 17 Feb 2024 08:36:32 -0500 Subject: [PATCH] Exclude camel-package-maven-plugin generated files --- src/main/java/gr/uom/java/xmi/UMLModelASTReader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/gr/uom/java/xmi/UMLModelASTReader.java b/src/main/java/gr/uom/java/xmi/UMLModelASTReader.java index 69e8da97e..dfc7a66b6 100644 --- a/src/main/java/gr/uom/java/xmi/UMLModelASTReader.java +++ b/src/main/java/gr/uom/java/xmi/UMLModelASTReader.java @@ -70,6 +70,7 @@ public class UMLModelASTReader { private static final String THRIFT_GENERATED = "Autogenerated by Thrift Compiler"; private static final String AUTOREST_GENERATED = "AutoRest Code Generator"; private static final String FHIR_GENERATED = "for FHIR"; + private static final String CAMEL_GENERATED = "Generated by camel-package-maven-plugin"; private UMLModel umlModel; public UMLModelASTReader(Map javaFileContents, Set repositoryDirectories, boolean astDiff) { @@ -116,7 +117,8 @@ private void processJavaFileContents(Map javaFileContents, boole parser.setSource(charArray); if((javaFileContent.contains(FREE_MARKER_GENERATED) || javaFileContent.contains(FREE_MARKER_GENERATED_2) || javaFileContent.contains(ANTLR_GENERATED) || javaFileContent.contains(XTEXT_GENERATED) || javaFileContent.contains(LWJGL_GENERATED) || javaFileContent.contains(TEST_GENERATOR_GENERATED) || - javaFileContent.contains(THRIFT_GENERATED) || javaFileContent.contains(AUTOREST_GENERATED) || javaFileContent.contains(FHIR_GENERATED)) && + javaFileContent.contains(THRIFT_GENERATED) || javaFileContent.contains(AUTOREST_GENERATED) || javaFileContent.contains(FHIR_GENERATED) || + javaFileContent.contains(CAMEL_GENERATED)) && !javaFileContent.contains("private static final String FREE_MARKER_GENERATED = \"generated using freemarker\";")) { continue; }