Project

General

Profile

Actions

Patch #13927

open

Reduce coupling between plugins and the "plugins/" directory

Added by Jean-Baptiste Barth about 11 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Category:
Plugin API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Today plugins are just directories in <redmine root>/plugins/ directory. There are a few implicit assumptions in Redmine code that this is the case, which doesn't add much benefit I think. This reference is needed in the plugin discovery mechanism, but I can see obvious reasons why it may appear anywhere else.

It has at least one disadvantage: it prevents from easily distributing plugins as gems or via an other mechanism (which I think has a long list of advantages that I could enumerate an other day).

An other motivation is that removing this would lead to clearer code I think, we could remove some Dir.glob and File.xxx calls in favor of new, clear methods in Redmine::Plugin.

I'll try to work on that and link commit to this issue.


Related issues

Related to Redmine - Patch #14402: Plugin migration directory should use plugin directoryClosedJean-Philippe Lang

Actions
Related to Redmine - Patch #24007: Change plugins directory through the configuration.yml fileReopened

Actions
Related to Redmine - Patch #26139: Follow Gemfile's plugin loader as #24007ReopenedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF