Skip to content

support string classpath splitting #1559

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

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

Conversation

tthornton3-chwy
Copy link

Alright this might be a little niche, but I do think it'll come in handy for more than just me :)

The classpath resolver is being finnicky, and including jars that it shouldn't be (for the test scope, it seems). I'm not too worried about it, I know the configuration for this project is a bit "non-typical". So what I am doing is using launch.json -> configurations -> ( java ) -> classPaths to "exclude" them. Great, it works!

However, instead of manually adding each of them in, i'm running an input like so "!${input:exclude-test-fixtures}",. This'll automagically go and get the jar paths that need skipping, separated by a colon (the proper delimiter). Ex: !/app/jar-1.jar:!/app/jar-2.jar:!/app/jar-2.jar

Then with this change, all of those can be skipped proper.

I don't think this'll introduce any issues, since a path that would've been there could never include a colon already.

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