public class ClassPathClassifierContext extends Object
ClassPathClassifier.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ClassPathClassifierContext(org.eclipse.aether.artifact.Artifact rootArtifact,
File pluginResourcesFolder,
List<URL> classPathURLs,
Set<String> excludedArtifacts,
List<String> extraBootPackages,
Set<String> providedExclusions,
Set<String> testExclusions,
Set<String> testInclusions,
Set<String> applicationSharedLibCoordinates,
Set<Class> exportPluginClasses,
List<URL> testRunnerPluginUrls,
boolean extensionMetadataGenerationEnabled,
Set<String> applicationLibCoordinates,
Set<String> testRunnerExportedLibCoordinates)
Creates a context used for doing the classification of the class path.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getApplicationLibCoordinates() |
List<String> |
getApplicationSharedLibCoordinates() |
List<URL> |
getClassPathURLs() |
List<String> |
getExcludedArtifacts() |
List<Class> |
getExportPluginClasses() |
List<String> |
getExtraBootPackages() |
File |
getPluginResourcesFolder() |
List<String> |
getProvidedExclusions() |
org.eclipse.aether.artifact.Artifact |
getRootArtifact() |
List<String> |
getTestExclusions()
Artifacts to be excluded from being added to application
ClassLoader due to they are going to be in container
ClassLoader. |
List<String> |
getTestInclusions()
Artifacts to be included from being added to application
ClassLoader. |
List<String> |
getTestRunnerExportedLibCoordinates() |
List<URL> |
getTestRunnerPluginUrls() |
boolean |
isExtensionMetadataGenerationEnabled() |
public ClassPathClassifierContext(org.eclipse.aether.artifact.Artifact rootArtifact,
File pluginResourcesFolder,
List<URL> classPathURLs,
Set<String> excludedArtifacts,
List<String> extraBootPackages,
Set<String> providedExclusions,
Set<String> testExclusions,
Set<String> testInclusions,
Set<String> applicationSharedLibCoordinates,
Set<Class> exportPluginClasses,
List<URL> testRunnerPluginUrls,
boolean extensionMetadataGenerationEnabled,
Set<String> applicationLibCoordinates,
Set<String> testRunnerExportedLibCoordinates)
throws IOException
rootArtifact - Artifact to the root artifact being classified. Not null.pluginResourcesFolder - File where resources for classification will be created.classPathURLs - the whole set of URLs that were loaded by IDE/Maven Surefire plugin when running the test. NotexcludedArtifacts - Maven artifacts to be excluded from artifact class loaders created here due to they are going to be
added as boot packages. In format [groupId]:[artifactId]:[extension]:[classifier]:[version].extraBootPackages - List of Strings containing the extra boot packages defined to be appended to the
container in addition to the pre-defined ones.providedExclusions - Maven artifacts to be excluded from the provided scope direct dependencies of rootArtifact. In
format [groupId]:[artifactId]:[extension]:[classifier]:[version].testExclusions - List of Maven coordinates to be excluded from application class loader. In format
[groupId]:[artifactId]:[extension]:[classifier]:[version].testInclusions - List of Maven coordinates to be included in application class loader. In format
[groupId]:[artifactId]:[extension]:[classifier]:[version].applicationSharedLibCoordinates - List of Maven coordinates in format <groupId>:<artifactId> in order to be
added to the sharedLib ArtifactClassLoaderexportPluginClasses - List of Class to be exported in addition to the ones already exported by the
plugin, for testing purposes only.testRunnerPluginUrls - List of URLs to be appended to the application
ArtifactClassLoaderextensionMetadataGenerationEnabled - if while building the a plugin
ArtifactClassLoader for an
Extension the metadata should be generated.applicationLibCoordinates - testRunnerExportedLibCoordinates - IOException - if an error happened while reading RunnerModuleUtils.EXCLUDED_PROPERTIES_FILE filepublic org.eclipse.aether.artifact.Artifact getRootArtifact()
Artifact to the current (root) artifact being tested.public File getPluginResourcesFolder()
File where resources for classification will be created.public List<String> getProvidedExclusions()
provided scope direct dependencies of the rootArtifact. In format
<groupId>:<artifactId>:[[<extension>]:<version>].public List<String> getExcludedArtifacts()
<groupId>:<artifactId>:[[<extension>]:<version>].public List<String> getTestExclusions()
ClassLoader due to they are going to be in container
ClassLoader.Set of Maven coordinates in the format:
<groupId>:<artifactId>:[[<extension>]:<version>].
public List<String> getTestInclusions()
ClassLoader.Set of Maven coordinates in the format:
<groupId>:<artifactId>:[[<classifier>]:<version>].
public List<String> getApplicationSharedLibCoordinates()
List of Maven coordinates in format <groupId>:<artifactId> or <groupId>:<artifactId>:<classifier> in order to be added to the sharedLib
ArtifactClassLoaderpublic List<String> getApplicationLibCoordinates()
List of Maven coordinates in format <groupId>:<artifactId> or <groupId>:<artifactId>:<classifier> in order to be added to the application
ArtifactClassLoaderpublic List<String> getTestRunnerExportedLibCoordinates()
List of Maven coordinates in format <groupId>:<artifactId> or <groupId>:<artifactId>:<classifier> in order to be exported by the test runner
ArtifactClassLoaderpublic boolean isExtensionMetadataGenerationEnabled()
true if while building the a plugin ArtifactClassLoader
for an Extension the metadata should be generated.Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.