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

Unconsidered linked .classpath files and test source folders #3803

Closed
HeikoKlare opened this issue May 2, 2024 · 1 comment
Closed

Unconsidered linked .classpath files and test source folders #3803

HeikoKlare opened this issue May 2, 2024 · 1 comment

Comments

@HeikoKlare
Copy link
Contributor

HeikoKlare commented May 2, 2024

When using linked resources in an Eclipse project, they are not always properly considered by a Tycho build. This can particularly lead to missing consideration and/or execution of tests:

  • A linked .classpath file is not considered, such that a JUnit test container specified in that file is not used for resolving JUnit, leading to compile failures of test classes.
  • A linked test source folder is not considered, such that tests defined in that source folder are not compiled and executed.

The issue has been detected in eclipse-platform/eclipse.platform.swt#1203

I have provided a reproducer in #3804.

@HeikoKlare
Copy link
Contributor Author

The root cause of this issue seems to be that the .classpath file is assumed to exist as direct content of a project's basedir:

public static Collection<ProjectClasspathEntry> parse(File basedir) throws IOException {
File file = new File(basedir, ".classpath");

laeubi added a commit to laeubi/tycho that referenced this issue May 3, 2024
laeubi added a commit to laeubi/tycho that referenced this issue May 3, 2024
@laeubi laeubi closed this as completed in 93b53da May 3, 2024
laeubi added a commit to laeubi/tycho that referenced this issue May 3, 2024
laeubi added a commit that referenced this issue May 3, 2024
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

No branches or pull requests

1 participant