Class ExportBaseCommand
java.lang.Object
org.apache.camel.dsl.jbang.core.commands.CamelCommand
org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand
- Direct Known Subclasses:
Export
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.dsl.jbang.core.commands.CamelCommand
CamelCommand.ParameterConsumer<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected static final Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected Stringprotected Path[]protected booleanprotected Stringprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected booleanprotected Stringprotected booleanprotected Stringprotected Stringprotected booleanprotected booleanprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected RuntimeTypeprotected static final String[]protected Stringprotected booleanprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDependencies(String... deps) protected voidadjustJavaSourceFileLine(String line, FileOutputStream fos) protected StringapplicationPropertyLine(String key, String value) protected voidcopyAgentDependencies(Set<String> deps) protected voidcopyApplicationPropertiesFiles(File srcResourcesDir) protected voidprotected voidcopyLocalLibDependencies(Set<String> deps) protected voidprotected voidcopySettingsAndProfile(File settings, File profile, File targetDir, Function<Properties, Object> customize) protected voidcopySourceFiles(File settings, File profile, File srcJavaDirRoot, File srcJavaDir, File srcResourcesDir, File srcCamelResourcesDir, File srcKameletsResourcesDir, String packageName) doCall()protected abstract Integerexport()protected StringexportPackageName(String groupId, String artifactId, String packageName) protected StringgetMavenRepositories(File settings, Properties prop, String camelVersion) Gets the maven repositoriesprotected static Stringprotected static booleanhasModeline(File settings) protected booleanhasOpenapi(Set<String> dependencies) protected static inthttpServerPort(File settings) protected static StringjibMavenPluginVersion(File settings, Properties prop) protected static StringjkubeMavenPluginVersion(File settings, Properties props) protected Propertiesprotected static StringmavenRepositoriesAsPomXml(String repos) protected Printerprotected static org.apache.camel.tooling.maven.MavenGavparseMavenGav(String dep) protected voidprepareApplicationProperties(Properties properties) protected voidprepareUserProperties(Properties properties) protected Printerprinter()protected StringreplaceBuildProperties(String context) resolveDependencies(File settings, File profile) protected IntegerrunSilently(boolean ignoreLoadingError, boolean lazyBean, boolean verbose) protected voidprotected voidsafeCopy(InputStream source, File target) Methods inherited from class org.apache.camel.dsl.jbang.core.commands.CamelCommand
call, configureLoggingOff, disarrangeLogging, getActionFile, getDebugFile, getMain, getOutputFile, getReceiveFile, getRunBackgroundLogFile, getStatusFile, getTraceFile, printConfigurationValues
-
Field Details
-
BUILD_DIR
- See Also:
-
SETTINGS_PROP_SOURCE_KEYS
-
filePaths
-
files
-
repositories
-
dependencies
-
runtime
-
name
-
gav
-
excludes
-
mavenSettings
-
mavenSettingsSecurity
-
mavenCentralEnabled
protected boolean mavenCentralEnabled -
mavenApacheSnapshotEnabled
protected boolean mavenApacheSnapshotEnabled -
mainClassname
-
javaVersion
-
camelVersion
-
kameletsVersion
-
profile
-
localKameletDir
-
springBootVersion
-
camelSpringBootVersion
-
quarkusGroupId
-
quarkusArtifactId
-
quarkusVersion
-
mavenWrapper
protected boolean mavenWrapper -
gradleWrapper
protected boolean gradleWrapper -
buildTool
-
openapi
-
exportDir
-
cleanExportDir
protected boolean cleanExportDir -
loggingLevel
-
packageName
-
fresh
protected boolean fresh -
download
protected boolean download -
buildProperties
-
applicationProperties
-
logging
protected boolean logging -
quiet
protected boolean quiet -
verbose
protected boolean verbose -
ignoreLoadingError
protected boolean ignoreLoadingError -
lazyBean
protected boolean lazyBean -
symbolicLink
protected boolean symbolicLink -
javaLiveReload
protected boolean javaLiveReload -
pomTemplateName
-
-
Constructor Details
-
ExportBaseCommand
-
-
Method Details
-
doCall
- Specified by:
doCallin classCamelCommand- Throws:
Exception
-
mavenRepositoriesAsPomXml
-
export
- Throws:
Exception
-
getScheme
-
runSilently
protected Integer runSilently(boolean ignoreLoadingError, boolean lazyBean, boolean verbose) throws Exception - Throws:
Exception
-
addDependencies
-
replaceBuildProperties
-
resolveDependencies
- Throws:
Exception
-
copySourceFiles
protected void copySourceFiles(File settings, File profile, File srcJavaDirRoot, File srcJavaDir, File srcResourcesDir, File srcCamelResourcesDir, File srcKameletsResourcesDir, String packageName) throws Exception - Throws:
Exception
-
adjustJavaSourceFileLine
- Throws:
Exception
-
exportPackageName
-
copySettingsAndProfile
protected void copySettingsAndProfile(File settings, File profile, File targetDir, Function<Properties, Object> customize) throws Exception- Throws:
Exception
-
prepareApplicationProperties
-
prepareUserProperties
-
hasOpenapi
-
mapBuildProperties
-
copyMavenWrapper
- Throws:
Exception
-
copyGradleWrapper
- Throws:
Exception
-
applicationPropertyLine
-
getMavenRepositories
protected String getMavenRepositories(File settings, Properties prop, String camelVersion) throws Exception Gets the maven repositories- Parameters:
prop- settingscamelVersion- the camel version- Returns:
- repositories or null if none are in use
- Throws:
Exception
-
hasModeline
-
httpServerPort
-
jibMavenPluginVersion
-
jkubeMavenPluginVersion
-
safeCopy
- Throws:
Exception
-
safeCopy
- Throws:
Exception
-
parseMavenGav
-
copyLocalLibDependencies
- Throws:
Exception
-
copyAgentDependencies
- Throws:
Exception
-
copyApplicationPropertiesFiles
- Throws:
Exception
-
outPrinter
-
printer
- Overrides:
printerin classCamelCommand
-