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

The filename or extension is too long #68

Closed
jakob-grabner opened this issue Mar 16, 2018 · 2 comments
Closed

The filename or extension is too long #68

jakob-grabner opened this issue Mar 16, 2018 · 2 comments
Labels

Comments

@jakob-grabner
Copy link

I'm not entirely sure that this plugin is causing my problems, but I'm unable run my tests via gradle on the console. It works if I run them via android studio, but if I try to run the gradle task manually it fails with java.io.IOException: CreateProcess error=206, The filename or extension is too long.
This seems to be a known problem on windows Mitigate Long Path Issues Automatically #1989.

Also if I disable the plugin executing the test works (But only junit4 tests are executed...).

Entire stacktrace:
stacktrace.txt

@mannodermaus
Copy link
Owner

As far as I understand from a bit of googling regarding this issue, this seems to target Windows specifically. This plugin uses JavaExec tasks to run the JUnit Platform, so it is subject to this error when there is a lot of stuff in your classpath.

I found this plugin which hooks into JavaExec tasks and extracts their classpath into a JAR file, compressing the path significantly. Can you check if this works for your case?

@mannodermaus
Copy link
Owner

I'm closing this for now. Feel free to reopen if necessary!

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

No branches or pull requests

2 participants