Skip to content

Commit

Permalink
Exclude camel-package-maven-plugin generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Feb 17, 2024
1 parent 15f86b7 commit 34f18cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/gr/uom/java/xmi/UMLModelASTReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> javaFileContents, Set<String> repositoryDirectories, boolean astDiff) {
Expand Down Expand Up @@ -116,7 +117,8 @@ private void processJavaFileContents(Map<String, String> 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;
}
Expand Down

0 comments on commit 34f18cd

Please sign in to comment.