Class SBOMGenerator
java.lang.Object
org.apache.camel.dsl.jbang.core.commands.CamelCommand
org.apache.camel.dsl.jbang.core.commands.Export
org.apache.camel.dsl.jbang.core.commands.SBOMGenerator
-
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 Stringprotected static final Stringprotected Stringprotected Stringprotected Stringprotected static final Stringprotected Stringprotected Stringprotected booleanprotected static final Stringprotected Stringprotected Path[]protected booleanprotected Stringprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected static final Stringprotected static final Stringprotected Stringprotected Stringprotected static final String[]protected static final Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustJavaSourceFileLine(String line, FileOutputStream fos) protected StringapplicationPropertyLine(String key, String value) protected voidcopyAgentDependencies(Set<String> deps) 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 IntegerdoExport()protected Integerexport()protected StringexportPackageName(String groupId, String artifactId, String packageName) protected StringgetMavenRepos(File settings, Properties prop, String camelVersion) Gets the maven repositoriesprotected static Stringprotected static booleanhasModeline(File settings) protected static inthttpServerPort(File settings) protected static StringjibMavenPluginVersion(File settings) protected static StringmavenRepositoriesAsPomXml(String repos) protected static org.apache.camel.tooling.maven.MavenGavparseMavenGav(String dep) protected voidprepareApplicationProperties(Properties properties) resolveDependencies(File settings, File profile) protected IntegerrunSilently(boolean ignoreLoadingError) protected static voidprotected voidsafeCopy(InputStream source, File target) Methods inherited from class org.apache.camel.dsl.jbang.core.commands.Export
export, mavenGavComparatorMethods inherited from class org.apache.camel.dsl.jbang.core.commands.CamelCommand
call, configureLoggingOff, disarrangeLogging, getActionFile, getDebugFile, getMain, getOutputFile, getStatusFile, getTraceFile, printConfigurationValues, printer
-
Field Details
-
EXPORT_DIR
- See Also:
-
CYCLONEDX_FORMAT
- See Also:
-
SPDX_FORMAT
- See Also:
-
SBOM_JSON_FORMAT
- See Also:
-
SBOM_XML_FORMAT
- See Also:
-
outputDirectory
-
outputName
-
cyclonedxPluginVersion
-
spdxPluginVersion
-
sbomFormat
-
sbomOutputFormat
-
BUILD_DIR
- See Also:
-
SETTINGS_PROP_SOURCE_KEYS
-
filePaths
-
files
-
profile
-
repos
-
dependencies
-
runtime
-
gav
-
mainClassname
-
javaVersion
-
camelVersion
-
kameletsVersion
-
localKameletDir
-
springBootVersion
-
camelSpringBootVersion
-
quarkusGroupId
-
quarkusArtifactId
-
quarkusVersion
-
mavenWrapper
protected boolean mavenWrapper -
gradleWrapper
protected boolean gradleWrapper -
buildTool
-
openapi
-
exportDir
-
loggingLevel
-
packageName
-
fresh
protected boolean fresh -
download
protected boolean download -
additionalProperties
-
ignoreLoadingError
protected boolean ignoreLoadingError
-
-
Constructor Details
-
SBOMGenerator
-
-
Method Details
-
doCall
- Throws:
Exception
-
export
-
doExport
- Throws:
Exception
-
getProfile
-
mavenRepositoriesAsPomXml
-
getScheme
-
runSilently
- Throws:
Exception
-
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
-
copyMavenWrapper
- Throws:
Exception
-
copyGradleWrapper
- Throws:
Exception
-
applicationPropertyLine
-
getMavenRepos
protected String getMavenRepos(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
-
safeCopy
- Throws:
Exception
-
safeCopy
- Throws:
Exception
-
parseMavenGav
-
copyLocalLibDependencies
- Throws:
Exception
-
copyAgentDependencies
- Throws:
Exception
-