Skip to content

jrubycomplete - OSGi DynamicImport-Package breaks Adobe AEM #1977

@ghost

Description

I've built a bundle for Adobe AEM to compile SASS files on-the-fly, as part of the process I create a resource containing the sass gem using gems-in-a-jar approach which is then added to the bundle classpath. When a user requests a specific resource, the bundle creates an osgi scripting container and runs a small ruby script to generate the compiled css.

container = new OSGiScriptingContainer(...)
container.put("content", source);
container.runScriptlet(bundle, "scripts/compile.rb");
engine = Sass::Engine.new(content, {
    :style => :compressed,
    :cache => false,
    :syntax => :scss
})

result = engine.render()

When the compilation phase takes place, the compilation will fail when sass attempts to include the date/datetime library as the dynamic import attempts to bring in joda-time.

Do we really need the DynamicImport-Package in the MANIFEST.MF?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions