Introduce workspace parameter #887
Labels
in:core
MLP core module
is:feature
New feature
todo
Accepted items from the backlog which can be worked on
workspace
would define the global workspace to work oneThis concept exists already but is implicit:
defaultBasedir
,The idea is not make it explicitly configurable.
LicenceSet
are used to "split" the workspace into several groups of file and assigning them a license. So they inherit the workspace baseDir, includes, excludes. licensSet.baseDir can be overridden but must be a sub directory of the workspace (@hazendaz : I don't know if we make sure of that somewhere, but with the workspace concept we will be)As I see things for includes/excludes:
For backward compat',
defaultBasedir
must be marked deprecated, without any default now ,and if set by the user, its value will fill "workspace.baseDir". The propertylicense.basedir
should be moved toworkspace.baseDir
In the case of a commit hook, then the only property to add would be:
-D license.workspace.includes=<list of file paths>
This behind will be transferred to licenseset.includes and will have at the end the same effect of my comment in this PR: #878 (comment)
Also, this "design" does not change the scanner logic, which is still taking place but based on a refinement of the baseDir / includes / excludes.
@mathieucarbou @hazendaz @frawa : let me know what you think of that ;-)
Originally posted by @mathieucarbou in #876 (comment)
The text was updated successfully, but these errors were encountered: