This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| import static java.lang.System.*; | |
| public class myhome2 { | |
| public static void main(String... args) { | |
| out.println(System.getenv("HOME")); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| import static java.lang.System.*; | |
| public class myhome { | |
| public static void main(String... args) { | |
| out.println(java.nio.file.Paths.get(System.getProperty("user.home"))); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - rest: | |
| id: rest-023d | |
| post: | |
| - id: post-ff05 | |
| path: files | |
| to: direct:files | |
| - route: | |
| id: route-0c9c | |
| nodePrefixId: route-4ce | |
| from: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //DEPS org.apache.camel:camel-kubernetes | |
| // camel-k: language=java | |
| import io.fabric8.kubernetes.api.model.EnvVar; | |
| import org.apache.camel.builder.RouteBuilder; | |
| public class foo extends RouteBuilder { | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // camel-k: language=java | |
| import org.apache.camel.builder.RouteBuilder; | |
| public class split extends RouteBuilder { | |
| @Override | |
| public void configure() throws Exception { | |
| // Write your routes here, for example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.foo.acme; | |
| import com.azure.core.credential.AccessToken; | |
| import com.azure.core.credential.TokenCredential; | |
| import com.azure.core.credential.TokenRequestContext; | |
| import reactor.core.publisher.Mono; | |
| public class MyCredential implements TokenCredential { | |
| private String username; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/workspace/deleteme/tmp ❯ jbang -V | |
| 0.104.0 | |
| ~/workspace/deleteme/tmp ❯ camel -V | |
| 3.20.2 | |
| ~/workspace/deleteme/tmp ❯ camel init first.yaml | |
| ~/workspace/deleteme/tmp ❯ camel run * | |
| 2023-03-15 04:02:07.608 INFO 90969 --- [ main] org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.20.2 is starting | |
| 2023-03-15 04:02:07.716 INFO 90969 --- [ main] org.apache.camel.main.MainSupport : Using Java 17.0.5 with PID 90969. Started by davsclaus in /Users/davsclaus/workspace/deleteme/tmp | |
| 2023-03-15 04:02:07.722 INFO 90969 --- [ main] mel.cli.connector.LocalCliConnector : Camel CLI enabled (local) | |
| 2023-03-15 04:02:08.120 INFO 90969 --- [ main] el.impl.engine.AbstractCamelContext : Apache Camel 3.20.2 (first) is starting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // camel-k: language=java | |
| import org.apache.camel.builder.RouteBuilder; | |
| import javax.management.Attribute; | |
| import javax.management.MBeanServer; | |
| import javax.management.ObjectName; | |
| public class workaround extends RouteBuilder { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # camel-k: language=yaml | |
| - rest: | |
| get: | |
| - path: "/hello" | |
| to: "direct:hello" | |
| - from: | |
| uri: "direct:hello" | |
| steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "status": "UP", | |
| "components": { | |
| "camelHealth": { | |
| "status": "UP", | |
| "details": { | |
| "name": "camel-health-check", | |
| "context": "UP", | |
| "context.data": { | |
| "invocation.count": "1", |
NewerOlder