Skip to content

Classloader not used for source code loading #10201

@jkamon

Description

@jkamon

GWT compiler uses classloader of executing thread. Such implementation provides great flexibility of callers to provide new possibilities of loading resources. Compilation with custom classloader could enable loading of artefacts not only from local paths but also from absolute paths or other locations or memory.
Due to the implementation of ResourceLoaders there is no way to fully utilize classloader and for example load sources from any location desired. Limitation comes from:

Sets.newLinkedHashSet(Splitter.on(File.pathSeparatorChar).split(JAVA_CLASS_PATH.value()));
since only system classpath will be scanned for artefacts.

There are probably several ways to lift this limitation:
a) Simple property adding new locations to classpathentries would probably help.
b) Ability to provide own implementation of resource loader could be a cleaner way
and someone with better understanding of GWT architecture would probably generate better options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions