You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2023/03/07 17:24:06 UTC

[camel] 10/10: Merge branch 'jbang-user-config' of github.com:apache/camel into jbang-user-config

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

fmariani pushed a commit to branch jbang-user-config
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 99c9129a75de0859d81f3205046b7162db924455
Merge: 81bd09bb346 e850dc1faa5
Author: Croway <fe...@gmail.com>
AuthorDate: Tue Mar 7 18:23:41 2023 +0100

    Merge branch 'jbang-user-config' of github.com:apache/camel into jbang-user-config

 .../org/apache/camel/dsl/jbang/ConfigTest.java     | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --cc dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/ConfigTest.java
index 00000000000,00000000000..96b85bc3daa
new file mode 100644
--- /dev/null
+++ b/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/ConfigTest.java
@@@ -1,0 -1,0 +1,29 @@@
++package org.apache.camel.dsl.jbang;
++
++import org.apache.camel.dsl.jbang.core.commands.CamelJBangMain;
++import org.apache.camel.dsl.jbang.core.common.CommandLineHelper;
++
++import org.junit.jupiter.api.Test;
++
++import java.io.File;
++
++public class ConfigTest {
++
++	@Test
++	public void config() {
++		File file = new File(System.getProperty("user.home"), CommandLineHelper.USER_CONFIG);
++		if (file.exists()) {
++			file.delete();
++		}
++
++		CamelJBangMain.run("config", "set", "directory=target/data");
++		CamelJBangMain.run("config", "set", "gav=com.foo:acme:1.0-SNAPSHOT");
++		CamelJBangMain.run("config", "set", "runtime=spring-boot");
++		CamelJBangMain.run("config", "set", "deps=org.apache.camel.springboot:camel-timer-starter");
++		CamelJBangMain.run("config", "set", "camel-spring-boot-version=3.20.1.redhat-00030");
++		CamelJBangMain.run("config", "set", "additional-properties=openshift-maven-plugin-version=1.9.1.redhat-00004");
++		CamelJBangMain.run("config", "list");
++		CamelJBangMain.run("config", "get", "additional-properties");
++		CamelJBangMain.run("export");
++	}
++}