microsoft / microsoft/java-debug

[major] [bug] Gradle projects add test compile path in the launcher configuration

Open
#507 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged bug external
Dominant language
Java
Stars
409
Forks
204
Avg merge
1d 13h
Merged PRs (30d)
4

Description

Run the attached project, and when checking the arg file, we can see that the bin/test is added into class path which cause issues when there are different resource files for testing purpose in applications.

micrometer-demo.zip

-cp "/Users/home/micrometer-demo/bin/main:/Users/home/micrometer-demo/bin/test:...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the attached micrometer-demo.zip Gradle project and inspecting the generated launcher argument file. Trace where the class path containing bin/main and bin/test is assembled; done means the test compile path is not added when launching the application, so test-only resources no longer interfere.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.