Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show relocated files previewed in the most specific project #735

Open
maybeec opened this issue Aug 8, 2018 · 1 comment
Open

Show relocated files previewed in the most specific project #735

maybeec opened this issue Aug 8, 2018 · 1 comment

Comments

@maybeec
Copy link
Member

maybeec commented Aug 8, 2018

Expected behavior

Using the relocate feature documented here: https://github.com/devonfw/tools-cobigen/wiki/cobigen-core_configuration#template-properties I would like to relocate generation into a different maven submodule. I also have parents imported in my workspace. In the preview, I would like to see the relocated preview in the most specific maven project (i.e. in the child project, not in the parent)

Actual behavior

The relocated target is shown in the most unspecific parent project imported in the workspace

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. create a multi-module maven project with at least one parent
  2. import all (including parent) projects into workspace
  3. relocate generation from one child module to another and select an input from one of the children
  4. see the preview to show the file to be generated in the parent project

Related/Dependent Issues

Implementation Hints

Currently, the workspace project is searched by checking the whole destination path of a template from the drive letter on, stopping at the path, which is included as a project in the workspace. This should be done the other way around, starting at the longest file path.

@github-actions
Copy link

Stale topic. Please negotiate closing or discussing the relevance of this ticket.

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

No branches or pull requests

1 participant