diff --git a/.gitignore b/.gitignore index e871c05ad7470..f21b36a36f8f7 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ mvnd.zip* backlog .claude .omc -.oss-ai-helper-rules \ No newline at end of file +.oss-ai-helper-rules +.rewrite-enabled diff --git a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java index 7f8ebdc2ac0ee..dfb99f19fc75c 100644 --- a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java +++ b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java @@ -82,6 +82,8 @@ *
* You can use the {@link CamelContext#getCamelContextExtension()} to obtain the extension point for the * {@link CamelContext}. This extension point exposes internal APIs via {@link ExtendedCamelContext}. + * + * TEST: Java change — OpenRewrite SHOULD run for core/camel-api only. */ public interface CamelContext extends CamelContextLifecycle, RuntimeConfiguration { diff --git a/etc/scripts/regen.sh b/etc/scripts/regen.sh index 5f4b75f2a69b0..e710691240b9d 100755 --- a/etc/scripts/regen.sh +++ b/etc/scripts/regen.sh @@ -25,6 +25,24 @@ cd `dirname "$0"`/../.. git clean -fdx rm -Rf **/src/generated/ +# Enable OpenRewrite only for modules with changed Java files. +# Maven's file-activated profile (