Skip to content

Expose Layers config to running application #76

Description

@aalmiray

Working with the modular-tiles example I wanted to add an option (via menu) to add/remove plugins. This requires copying files to the watched plugins directory, and removing files from said directory.

The problem is, the application has no clue where this directory is located! The application can be launched from any directory within the file system, yet the plugins directory is set relative to the basedir of the given layers config file. For this use case I could get away by having access to the value of the computed basedir (calculated by org.moditect.layrry.launcher.LayrryLauncher). This value could be exposed as a System property and would have to blindly assume that the plugins directory remains as plugins.

A better approach would be to let the running application have access to parsed the Layers configuration or even the Layers instance. If the later then it should not be possible for the app to run the Layers once again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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