public void prepare()

in atomosfeaturelauncherconfig/src/main/java/org/apache/sling/feature/launcher/atomos/config/AtomosConfigLauncher.java [101:140]


    public void prepare(final LauncherPrepareContext context,
                        final ArtifactId frameworkId,
                        final Feature app) throws Exception {
        context.addAppJar(AtomosConfigLauncher.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(Felix.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(LoggerFactory.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(IOUtils.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(ConfigurationReader.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(Json.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(Converter.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(SubstratePlugin.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(LauncherBuilderImpl.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(Function.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(ResourceConfiguration.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(BundleLogger.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(DefaultResourceConfiguration.class.getProtectionDomain().getCodeSource().getLocation());
        context.addAppJar(ScriptEngineManager.class.getProtectionDomain().getCodeSource().getLocation());
        super.prepare(context, ArtifactId.fromMvnId("org.apache.felix:org.apache.felix.framework:7.0.5"), app);
        app.getBundles().addAll(Stream.of(
                new Artifact(ArtifactId.fromMvnId("org.apache.sling:org.apache.sling.feature.launcher.atomos:0.0.1-SNAPSHOT")),
                new Artifact(ArtifactId.fromMvnId("org.apache.sling:org.apache.sling.feature.launcher:1.2.4")),
                new Artifact(ArtifactId.fromMvnId("org.apache.felix:org.apache.felix.framework:7.0.5")),
                new Artifact(ArtifactId.fromMvnId("org.osgi:osgi.core:8.0.0")),
                new Artifact(ArtifactId.fromMvnId("org.apache.felix:org.apache.felix.atomos:1.0.1-SNAPSHOT")),
                new Artifact(ArtifactId.fromMvnId("org.slf4j:slf4j-simple:1.7.25")),
                new Artifact(ArtifactId.fromMvnId("org.apache.sling:org.apache.sling.feature:1.3.0")),
                new Artifact(ArtifactId.fromMvnId("org.apache.felix:org.apache.felix.cm.json:1.0.6")),
                new Artifact(ArtifactId.fromMvnId("commons-cli:commons-cli:1.4"))).map(artifact -> {
                    artifact.setStartOrder(Integer.MAX_VALUE);
                    return artifact;
        }).collect(Collectors.toList()));
        app.getBundles().forEach(bundle -> {
            try {
                context.addAppJar(context.getArtifactFile(bundle.getId()));
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        });
        m_app = app;
    }