This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new b51c27e  Cleanup examples
b51c27e is described below

commit b51c27e6ace76769e0fb925209815f3aac8dcbc6
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Sep 11 13:25:24 2024 +0200

    Cleanup examples
---
 jbang/hello-endpoint-dsl/README.adoc | 14 --------------
 jbang/languages/README.adoc          |  2 +-
 jbang/languages/simple.groovy        | 23 -----------------------
 jbang/languages/simple.js            | 21 ---------------------
 4 files changed, 1 insertion(+), 59 deletions(-)

diff --git a/jbang/hello-endpoint-dsl/README.adoc 
b/jbang/hello-endpoint-dsl/README.adoc
index 47db3a7..8a3769e 100644
--- a/jbang/hello-endpoint-dsl/README.adoc
+++ b/jbang/hello-endpoint-dsl/README.adoc
@@ -42,20 +42,6 @@ The example can also be run directly by referring to the 
GitHub URL as shown:
 $ camel run 
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-endpoint-dsl
 ----
 
-You can even try other examples such as the polyglot example from Camel K:
-
-[source,sh]
-----
-$ camel run https://github.com/apache/camel-k/tree/main/examples/polyglot
-----
-
-Or the Kotlin route(s) (you can use wildcards):
-
-[source,sh]
-----
-$ camel run 
https://github.com/apache/camel-k/tree/main/examples/languages/*.kts
-----
-
 === Live reload
 
 You can run the example in dev mode which allows you to edit the example,
diff --git a/jbang/languages/README.adoc b/jbang/languages/README.adoc
index de46d39..b229575 100644
--- a/jbang/languages/README.adoc
+++ b/jbang/languages/README.adoc
@@ -2,7 +2,7 @@
 
 This example is demonstrating all the different DSLs supported by Apache Camel.
 
-Each DSL is a single hello world route in Java, YAML, XML, Groovy, Kotlin, 
JavaScript and so on.
+Each DSL is a single hello world route in Java, YAML, and XML.
 
 === Install JBang
 
diff --git a/jbang/languages/simple.groovy b/jbang/languages/simple.groovy
deleted file mode 100644
index 31ef570..0000000
--- a/jbang/languages/simple.groovy
+++ /dev/null
@@ -1,23 +0,0 @@
-// camel-k: language=groovy
-/*
- * 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.
- */
-
-from('timer:groovy?period=1000')
-    .routeId('groovy')
-    .setBody()
-        .simple('Hello Camel K from ${routeId}')
-    .to('log:info?showAll=false')
diff --git a/jbang/languages/simple.js b/jbang/languages/simple.js
deleted file mode 100644
index ac0ad77..0000000
--- a/jbang/languages/simple.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// camel-k: language=js
-// 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.
-
-from('timer:js?period=1000')
-    .routeId('js')
-    .setBody()
-        .simple('Hello Camel K from ${routeId}')
-    .to('log:info?multiline=true')

Reply via email to