Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Print both link source and destination to stdout

Christophe Bliard11227b3fcc88
diff --git a/frontend/ci-plugins-generator.js b/frontend/ci-plugins-generator.js
index 57278113460..f3bfd7e3bc4 100644
--- a/frontend/ci-plugins-generator.js
+++ b/frontend/ci-plugins-generator.js
@@ -29,9 +29,9 @@ export class LinkedPluginsModule { }
`;
};
-const railsRout = path.join(__dirname, '..');
-const pluginDir = path.join(railsRout, 'modules');
-const targetDir = path.join(railsRout, 'frontend/src/app/features/plugins/linked');
+const railsRoot = path.join(__dirname, '..');
+const pluginDir = path.join(railsRoot, 'modules');
+const targetDir = path.join(railsRoot, 'frontend/src/app/features/plugins/linked');
const plugins = new Map([
['budgets', path.join(pluginDir, 'budgets')],
@@ -51,7 +51,7 @@ plugins.forEach((pluginPath, name) => {
const linkTarget = path.join(pluginPath, 'frontend', 'module');
const linkPath = path.join(targetDir, name);
- console.log(`Linking frontend of OpenProject plugin ${name} to ${linkPath}.`);
+ console.log(`Linking frontend of OpenProject plugin ${name} (${linkPath} -> ${linkTarget}).`);
fs.symlinkSync(linkTarget, linkPath);
});
@@ -61,7 +61,7 @@ const allFrontendPlugins = Array.from(plugins).filter(([, pluginPath]) => {
});
function generatePluginModule(plugins) {
- const fileRegister = path.join(railsRout, 'frontend/src/app/features/plugins/linked-plugins.module.ts');
+ const fileRegister = path.join(railsRoot, 'frontend/src/app/features/plugins/linked-plugins.module.ts');
console.log(`Regenerating frontend plugin registry ${fileRegister}.`);
const result = LINKED_PLUGINS_MODULE_TEMPLATE(plugins);
diff --git a/lib/open_project/plugins/frontend_linking/generator.rb b/lib/open_project/plugins/frontend_linking/generator.rb
index 40c64e0dcac..90b39ffd063 100644
--- a/lib/open_project/plugins/frontend_linking/generator.rb
+++ b/lib/open_project/plugins/frontend_linking/generator.rb
@@ -105,7 +105,7 @@ module ::OpenProject::Plugins
source = File.join(path, "frontend", "module")
target = File.join(target_dir, name)
- puts "Linking frontend of OpenProject plugin #{name} to #{target}."
+ puts "Linking frontend of OpenProject plugin #{name} (#{target} -> #{source})."
FileUtils.ln_sf(source, target)
end
end