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

Prevent initial build-path errors on new external-folders in container #3731

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HannesWell
Copy link
Contributor

What it does

When adding an external-folder ('library-folder') to a classpath-container for the first time the initial build (without a rebuild, e.g. through auto-build) leads to a build-path (validation) error.
This happens for example when adding to a MANIFEST.MF a new requirement on a bundle that's a directory and not a jar and the PDE 'required-Plugins' classpath container is updated.

The reason is that the validation checks the linked folders created for external-folders. Calling ExternalFolderChange.updateExternalFoldersIfNecessary before the validation avoids these false-positive errors.

How to test

The use-case in our code-base is non-trivial, but I can try to derive a dedicated test-case for it once I know that this doesn't break anything and is generally a reasonable change.

Author checklist

When adding an external-folder ('library-folder') to a
classpath-container for the first time the initial build (without a
rebuild, e.g. through auto-build) leads to a build-path (validation)
error.
This happens for example when adding to a MANIFEST.MF a new requirement
on a bundle that's a directory and not a jar and the PDE
'required-Plugins' classpath container is updated.
@HannesWell HannesWell force-pushed the prevent-external-folder-errors branch from 0360e05 to 31f004b Compare February 12, 2025 10:33
@HannesWell
Copy link
Contributor Author

@iloveeclipse or @jukzi can you have a look at this?

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

Successfully merging this pull request may close these issues.

1 participant