This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 71cbcafc Removal of csimple language
71cbcafc is described below
commit 71cbcafc27a27e54c1bd6b6cba2988ac4092dec1
Author: Aurélien Pupier <[email protected]>
AuthorDate: Thu Aug 27 15:55:49 2026 +0200
Removal of csimple language
see https://github.com/apache/camel/pull/25807
Signed-off-by: Aurélien Pupier <[email protected]>
---
README.adoc | 4 -
csimple-joor/README.adoc | 36 -----
csimple-joor/pom.xml | 116 ----------------
.../org/apache/camel/example/MyApplication.java | 36 -----
.../org/apache/camel/example/MyRouteBuilder.java | 35 -----
.../src/main/resources/application.properties | 30 -----
csimple-joor/src/main/resources/log4j2.properties | 23 ----
.../org/apache/camel/example/CSimpleJOORTest.java | 56 --------
csimple/README.adoc | 37 ------
csimple/pom.xml | 148 ---------------------
.../org/apache/camel/example/CSimpleScript1.java | 36 -----
.../org/apache/camel/example/CSimpleScript2.java | 36 -----
.../org/apache/camel/example/CSimpleScript3.java | 36 -----
.../services/org/apache/camel/csimple.properties | 4 -
.../org/apache/camel/example/MyApplication.java | 36 -----
.../org/apache/camel/example/MyRouteBuilder.java | 35 -----
csimple/src/main/resources/application.properties | 30 -----
csimple/src/main/resources/log4j2.properties | 23 ----
.../java/org/apache/camel/example/CSimpleTest.java | 56 --------
pom.xml | 2 -
20 files changed, 815 deletions(-)
diff --git a/README.adoc b/README.adoc
index 7e40e89d..075bc2b9 100644
--- a/README.adoc
+++ b/README.adoc
@@ -60,10 +60,6 @@ Number of Examples: 72 (2 deprecated)
| link:console/README.adoc[Console] (console) | Beginner | An example that
reads input from the console
-| link:csimple/README.adoc[Csimple] (csimple) | Beginner | *deprecated* Shows
using compiled simple language (deprecated)
-
-| link:csimple-joor/README.adoc[Csimple Joor] (csimple-joor) | Beginner |
*deprecated* (deprecated) Shows using compiled simple language with jOOR
compiler
-
| link:spring/README.adoc[Spring] (spring) | Beginner | An example showing how
to work with Camel and Spring
| link:timer/README.adoc[Timer] (timer) | Beginner | An example showing how to
work with Camel Timer component
diff --git a/csimple-joor/README.adoc b/csimple-joor/README.adoc
deleted file mode 100644
index e5d40d65..00000000
--- a/csimple-joor/README.adoc
+++ /dev/null
@@ -1,36 +0,0 @@
-== Camel Example Compiled Simple using jooR compiler
-
-This example shows using csimple (compiled simple) scripting language in your
Camel routes.
-
-When Camel bootstrap then each csimple scripts is compiled using the JVM
compiler via the jOOR compiler library. The compilation happens once during
startup.
-
-This makes the csimple language native Java compiled, with no runtime overhead.
-The generated source code are in memory only and compiled at runtime. This
means debugging the generated source code is not possible. See the other
csimple example which uses a Maven plugin to detect csimple scripts from the
source code, to generate Java source code at build time; which can be debugged.
-
-=== Build
-
-You will need to compile this example first:
-
-[source,sh]
-----
-$ mvn compile
-----
-
-=== Run
-
-To run the example execute
-
-[source,sh]
-----
-$ mvn camel:run
-----
-
-=== Help and contributions
-
-If you hit any problem using Camel or have some feedback, then please
-https://camel.apache.org/community/support/[let us know].
-
-We also love contributors, so
-https://camel.apache.org/community/contributing/[get involved] :-)
-
-The Camel riders!
diff --git a/csimple-joor/pom.xml b/csimple-joor/pom.xml
deleted file mode 100644
index 35dc8f12..00000000
--- a/csimple-joor/pom.xml
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.example</groupId>
- <artifactId>camel-examples</artifactId>
- <version>4.23.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-csimple-joor</artifactId>
- <packaging>jar</packaging>
- <name>Camel :: Example :: Compiled Simple jOOR (deprecated)</name>
- <description>(deprecated) Shows using compiled simple language with jOOR
compiler</description>
-
- <properties>
- <category>Beginner</category>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <!-- Add Camel BOM -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-bom</artifactId>
- <version>${camel.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
-
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-main</artifactId>
- </dependency>
-
- <!-- use jOOR compiler to compile csimple scripts once during startup
-->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-csimple-joor</artifactId>
- </dependency>
-
- <!-- we use these camel components in this example -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-bean</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-timer</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-log</artifactId>
- </dependency>
-
- <!-- logging -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <version>${log4j2-version}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j2-impl</artifactId>
- <version>${log4j2-version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <!-- for testing -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-main-junit6</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <!-- to run the application -->
- <plugin>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-maven-plugin</artifactId>
- <version>${camel.version}</version>
- <configuration>
-
<mainClass>org.apache.camel.example.MyApplication</mainClass>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git
a/csimple-joor/src/main/java/org/apache/camel/example/MyApplication.java
b/csimple-joor/src/main/java/org/apache/camel/example/MyApplication.java
deleted file mode 100644
index 31197dc0..00000000
--- a/csimple-joor/src/main/java/org/apache/camel/example/MyApplication.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.main.Main;
-
-/**
- * Main class that boot the Camel application
- */
-public final class MyApplication {
-
- private MyApplication() {
- }
-
- public static void main(String[] args) throws Exception {
- // use Camels Main class
- Main main = new Main(MyApplication.class);
- // now keep the application running until the JVM is terminated (ctrl
+ c or sigterm)
- main.run(args);
- }
-
-}
diff --git
a/csimple-joor/src/main/java/org/apache/camel/example/MyRouteBuilder.java
b/csimple-joor/src/main/java/org/apache/camel/example/MyRouteBuilder.java
deleted file mode 100644
index 11498adc..00000000
--- a/csimple-joor/src/main/java/org/apache/camel/example/MyRouteBuilder.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.RouteBuilder;
-
-public class MyRouteBuilder extends RouteBuilder {
-
- @Override
- public void configure() throws Exception {
- from("timer:foo?period={{myPeriod}}")
- .transform(csimple("${random(20)}"))
- .choice()
- .when(csimple("${bodyAs(int)} > 10"))
- .log("high ${body}")
- .when(csimple("${bodyAs(int)} > 5"))
- .log("med ${body}")
- .otherwise()
- .log("low ${body}");
- }
-}
diff --git a/csimple-joor/src/main/resources/application.properties
b/csimple-joor/src/main/resources/application.properties
deleted file mode 100644
index d7e35e53..00000000
--- a/csimple-joor/src/main/resources/application.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-# here you can configure options on camel main
-# https://camel.apache.org/components/next/others/main.html
-camel.main.name = MyCSimpleJOORCamel
-
-# enable tracing
-### camel.main.tracing = true
-
-# bean introspection to log reflection based configuration
-camel.main.beanIntrospectionExtendedStatistics=true
-camel.main.beanIntrospectionLoggingLevel=INFO
-
-# properties used in the route
-myPeriod = 1000
diff --git a/csimple-joor/src/main/resources/log4j2.properties
b/csimple-joor/src/main/resources/log4j2.properties
deleted file mode 100644
index d9f0508a..00000000
--- a/csimple-joor/src/main/resources/log4j2.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-appender.out.type = Console
-appender.out.name = out
-appender.out.layout.type = PatternLayout
-appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n
-rootLogger.level = INFO
-rootLogger.appenderRef.out.ref = out
diff --git
a/csimple-joor/src/test/java/org/apache/camel/example/CSimpleJOORTest.java
b/csimple-joor/src/test/java/org/apache/camel/example/CSimpleJOORTest.java
deleted file mode 100644
index d0c7a9e1..00000000
--- a/csimple-joor/src/test/java/org/apache/camel/example/CSimpleJOORTest.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.NotifyBuilder;
-import org.apache.camel.main.MainConfigurationProperties;
-import org.apache.camel.test.junit6.CamelContextConfiguration;
-import org.apache.camel.test.main.junit6.CamelMainTestSupport;
-import org.junit.jupiter.api.Test;
-
-import java.util.Properties;
-import java.util.concurrent.TimeUnit;
-
-import static org.apache.camel.util.PropertiesHelper.asProperties;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-/**
- * A unit test checking that the compiled simple expressions using jooR
compiler are evaluated as expected.
- */
-class CSimpleJOORTest extends CamelMainTestSupport {
-
- @Override
- public void configureContext(CamelContextConfiguration
camelContextConfiguration) {
- super.configureContext(camelContextConfiguration);
- Properties overridenProperties = asProperties("myPeriod",
Integer.toString(500));
-
camelContextConfiguration.withUseOverridePropertiesWithPropertiesComponent(overridenProperties);
- }
-
- @Test
- void should_be_evaluated() {
- NotifyBuilder notify = new
NotifyBuilder(context).from("timer:*").whenCompleted(5).create();
-
- assertTrue(
- notify.matches(5, TimeUnit.SECONDS), "5 messages should be
completed"
- );
- }
-
- @Override
- protected void configure(MainConfigurationProperties configuration) {
- configuration.addRoutesBuilder(MyRouteBuilder.class);
- }
-}
diff --git a/csimple/README.adoc b/csimple/README.adoc
deleted file mode 100644
index 22ac6c58..00000000
--- a/csimple/README.adoc
+++ /dev/null
@@ -1,37 +0,0 @@
-== Camel Example Compiled Simple
-
-This example shows using csimple (compiled simple) scripting language in your
Camel routes.
-
-A maven plugin (configured in `pom.xml`) detects the csimple scripts from the
project source code and then generate Java source code in `src/generated/java`
folder which then gets compiled with the regular Java compiler.
-
-This makes the csimple language native Java compiled, with no runtime overhead.
-The generated source code in `src/generated/java` is just regular Java source
code and you can therefore debug the code. You can try this by loading the
project into a Java IDE, and then launch the application in debug mode from the
`MyApplication` class. You can then set breakpoints in the generated source
code in the `src/generated/java` folder.
-
-
-=== Build
-
-You will need to compile this example first:
-
-[source,sh]
-----
-$ mvn compile
-----
-
-=== Run
-
-To run the example execute
-
-[source,sh]
-----
-$ mvn camel:run
-----
-
-=== Help and contributions
-
-If you hit any problem using Camel or have some feedback, then please
-https://camel.apache.org/community/support/[let us know].
-
-We also love contributors, so
-https://camel.apache.org/community/contributing/[get involved] :-)
-
-The Camel riders!
diff --git a/csimple/pom.xml b/csimple/pom.xml
deleted file mode 100644
index 89f75256..00000000
--- a/csimple/pom.xml
+++ /dev/null
@@ -1,148 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.example</groupId>
- <artifactId>camel-examples</artifactId>
- <version>4.23.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-csimple</artifactId>
- <packaging>jar</packaging>
- <name>Camel :: Example :: Compiled Simple (deprecated)</name>
- <description>Shows using compiled simple language
(deprecated)</description>
-
- <properties>
- <category>Beginner</category>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <!-- Add Camel BOM -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-bom</artifactId>
- <version>${camel.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
-
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-main</artifactId>
- </dependency>
- <!-- we use these camel components in this example -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-bean</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-timer</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-log</artifactId>
- </dependency>
-
- <!-- logging -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <version>${log4j2-version}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j2-impl</artifactId>
- <version>${log4j2-version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <!-- for testing -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-main-junit6</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <!-- to run the application -->
- <plugin>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-maven-plugin</artifactId>
- <version>${camel.version}</version>
- <configuration>
-
<mainClass>org.apache.camel.example.MyApplication</mainClass>
- </configuration>
- </plugin>
- <!-- generate source code for csimple languages -->
- <plugin>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-csimple-maven-plugin</artifactId>
- <version>${camel.version}</version>
- <executions>
- <execution>
- <id>generate</id>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- include source code generated to maven sources paths -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>3.6.1</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- <goal>add-resource</goal>
- </goals>
- <configuration>
- <sources>
- <source>src/generated/java</source>
- </sources>
- <resources>
- <resource>
-
<directory>src/generated/resources</directory>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git
a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript1.java
b/csimple/src/generated/java/org/apache/camel/example/CSimpleScript1.java
deleted file mode 100644
index 22bd0108..00000000
--- a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript1.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.apache.camel.example;
-
-import java.util.*;
-import java.util.concurrent.*;
-import java.util.stream.*;
-
-import org.apache.camel.*;
-import org.apache.camel.util.*;
-import org.apache.camel.spi.*;
-import static org.apache.camel.language.csimple.CSimpleHelper.*;
-
-
-public class CSimpleScript1 extends
org.apache.camel.language.csimple.CSimpleSupport {
-
- Language bean;
- UuidGenerator uuid;
-
- public CSimpleScript1() {
- }
-
- @Override
- public boolean isPredicate() {
- return false;
- }
-
- @Override
- public String getText() {
- return "${random(20)}";
- }
-
- @Override
- public Object evaluate(CamelContext context, Exchange exchange, Message
message, Object body) throws Exception {
- return random(exchange, 0, 20);
- }
-}
-
diff --git
a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript2.java
b/csimple/src/generated/java/org/apache/camel/example/CSimpleScript2.java
deleted file mode 100644
index 87643ec3..00000000
--- a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript2.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.apache.camel.example;
-
-import java.util.*;
-import java.util.concurrent.*;
-import java.util.stream.*;
-
-import org.apache.camel.*;
-import org.apache.camel.util.*;
-import org.apache.camel.spi.*;
-import static org.apache.camel.language.csimple.CSimpleHelper.*;
-
-
-public class CSimpleScript2 extends
org.apache.camel.language.csimple.CSimpleSupport {
-
- Language bean;
- UuidGenerator uuid;
-
- public CSimpleScript2() {
- }
-
- @Override
- public boolean isPredicate() {
- return true;
- }
-
- @Override
- public String getText() {
- return "${body} > 10";
- }
-
- @Override
- public Object evaluate(CamelContext context, Exchange exchange, Message
message, Object body) throws Exception {
- return isGreaterThan(exchange, body, 10);
- }
-}
-
diff --git
a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript3.java
b/csimple/src/generated/java/org/apache/camel/example/CSimpleScript3.java
deleted file mode 100644
index f4697144..00000000
--- a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript3.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.apache.camel.example;
-
-import java.util.*;
-import java.util.concurrent.*;
-import java.util.stream.*;
-
-import org.apache.camel.*;
-import org.apache.camel.util.*;
-import org.apache.camel.spi.*;
-import static org.apache.camel.language.csimple.CSimpleHelper.*;
-
-
-public class CSimpleScript3 extends
org.apache.camel.language.csimple.CSimpleSupport {
-
- Language bean;
- UuidGenerator uuid;
-
- public CSimpleScript3() {
- }
-
- @Override
- public boolean isPredicate() {
- return true;
- }
-
- @Override
- public String getText() {
- return "${body} > 5";
- }
-
- @Override
- public Object evaluate(CamelContext context, Exchange exchange, Message
message, Object body) throws Exception {
- return isGreaterThan(exchange, body, 5);
- }
-}
-
diff --git
a/csimple/src/generated/resources/META-INF/services/org/apache/camel/csimple.properties
b/csimple/src/generated/resources/META-INF/services/org/apache/camel/csimple.properties
deleted file mode 100644
index f76904b2..00000000
---
a/csimple/src/generated/resources/META-INF/services/org/apache/camel/csimple.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-org.apache.camel.example.CSimpleScript1
-org.apache.camel.example.CSimpleScript2
-org.apache.camel.example.CSimpleScript3
diff --git a/csimple/src/main/java/org/apache/camel/example/MyApplication.java
b/csimple/src/main/java/org/apache/camel/example/MyApplication.java
deleted file mode 100644
index 31197dc0..00000000
--- a/csimple/src/main/java/org/apache/camel/example/MyApplication.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.main.Main;
-
-/**
- * Main class that boot the Camel application
- */
-public final class MyApplication {
-
- private MyApplication() {
- }
-
- public static void main(String[] args) throws Exception {
- // use Camels Main class
- Main main = new Main(MyApplication.class);
- // now keep the application running until the JVM is terminated (ctrl
+ c or sigterm)
- main.run(args);
- }
-
-}
diff --git a/csimple/src/main/java/org/apache/camel/example/MyRouteBuilder.java
b/csimple/src/main/java/org/apache/camel/example/MyRouteBuilder.java
deleted file mode 100644
index dfff5fb5..00000000
--- a/csimple/src/main/java/org/apache/camel/example/MyRouteBuilder.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.RouteBuilder;
-
-public class MyRouteBuilder extends RouteBuilder {
-
- @Override
- public void configure() throws Exception {
- from("timer:foo?period={{myPeriod}}")
- .transform().csimple("${random(20)}")
- .choice()
- .when().csimple("${body} > 10")
- .log("high ${body}")
- .when().csimple("${body} > 5")
- .log("med ${body}")
- .otherwise()
- .log("low ${body}");
- }
-}
diff --git a/csimple/src/main/resources/application.properties
b/csimple/src/main/resources/application.properties
deleted file mode 100644
index 47a881dc..00000000
--- a/csimple/src/main/resources/application.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-# here you can configure options on camel main
-# https://camel.apache.org/components/next/others/main.html
-camel.main.name = MyCSimpleCamel
-
-# enable tracing
-### camel.main.tracing = true
-
-# bean introspection to log reflection based configuration
-camel.main.beanIntrospectionExtendedStatistics=true
-camel.main.beanIntrospectionLoggingLevel=INFO
-
-# properties used in the route
-myPeriod = 1000
diff --git a/csimple/src/main/resources/log4j2.properties
b/csimple/src/main/resources/log4j2.properties
deleted file mode 100644
index d9f0508a..00000000
--- a/csimple/src/main/resources/log4j2.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-appender.out.type = Console
-appender.out.name = out
-appender.out.layout.type = PatternLayout
-appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n
-rootLogger.level = INFO
-rootLogger.appenderRef.out.ref = out
diff --git a/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java
b/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java
deleted file mode 100644
index d8d2fdbb..00000000
--- a/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.NotifyBuilder;
-import org.apache.camel.main.MainConfigurationProperties;
-import org.apache.camel.test.junit6.CamelContextConfiguration;
-import org.apache.camel.test.main.junit6.CamelMainTestSupport;
-import org.junit.jupiter.api.Test;
-
-import java.util.Properties;
-import java.util.concurrent.TimeUnit;
-
-import static org.apache.camel.util.PropertiesHelper.asProperties;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-/**
- * A unit test checking that the compiled simple expressions are evaluated as
expected.
- */
-class CSimpleTest extends CamelMainTestSupport {
-
- @Override
- public void configureContext(CamelContextConfiguration
camelContextConfiguration) {
- super.configureContext(camelContextConfiguration);
- Properties overridenProperties = asProperties("myPeriod",
Integer.toString(500));
-
camelContextConfiguration.withUseOverridePropertiesWithPropertiesComponent(overridenProperties);
- }
-
- @Test
- void should_be_evaluated() {
- NotifyBuilder notify = new
NotifyBuilder(context).from("timer:*").whenCompleted(5).create();
-
- assertTrue(
- notify.matches(5, TimeUnit.SECONDS), "5 messages should be
completed"
- );
- }
-
- @Override
- protected void configure(MainConfigurationProperties configuration) {
- configuration.addRoutesBuilder(MyRouteBuilder.class);
- }
-}
diff --git a/pom.xml b/pom.xml
index 895ab350..3c943585 100644
--- a/pom.xml
+++ b/pom.xml
@@ -91,8 +91,6 @@
<module>cassandra-kubernetes</module>
<module>console</module>
<module>couchbase-log</module>
- <module>csimple</module>
- <module>csimple-joor</module>
<module>debezium-eventhubs-blob</module>
<module>flight-recorder</module>
<module>ftp</module>