Class CommandLineHelper
java.lang.Object
org.apache.camel.dsl.jbang.core.common.CommandLineHelper
Helper for CLI command line.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaugmentWithUserConfiguration(picocli.CommandLine commandLine, String... args) static voidstatic FileThe basic Camel directory located in the user home directory.static StringGets the user home directory.static FileGets the Camel JBang working directory.static voidloadProperties(Consumer<Properties> consumer) static voidstoreProperties(Properties properties, Printer printer) static voiduseHomeDir(String homeDir) Adjust basic home directory where user properties and other settings will be stored.
-
Field Details
-
USER_CONFIG
- See Also:
-
CAMEL_DIR
- See Also:
-
CAMEL_JBANG_WORK_DIR
- See Also:
-
-
Method Details
-
augmentWithUserConfiguration
-
createPropertyFile
- Throws:
IOException
-
loadProperties
-
storeProperties
-
getHomeDir
Gets the user home directory.- Returns:
- the user home directory.
-
useHomeDir
Adjust basic home directory where user properties and other settings will be stored. Unit tests may set this in order to create stable and independent tests.- Parameters:
homeDir- the home directory.
-
getCamelDir
The basic Camel directory located in the user home directory.- Returns:
- file pointing to the camel directory.
-
getWorkDir
Gets the Camel JBang working directory.- Returns:
- file pointing to the working directory.
-