{"action":"created","issue":{"url":"https://api.github.com/repos/maiflai/gradle-scalatest/issues/30","repository_url":"https://api.github.com/repos/maiflai/gradle-scalatest","labels_url":"https://api.github.com/repos/maiflai/gradle-scalatest/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/maiflai/gradle-scalatest/issues/30/comments","events_url":"https://api.github.com/repos/maiflai/gradle-scalatest/issues/30/events","html_url":"https://github.com/maiflai/gradle-scalatest/issues/30","id":144677337,"node_id":"MDU6SXNzdWUxNDQ2NzczMzc=","number":30,"title":"\"error=206, The filename or extension is too long\" error on Windows","user":{"login":"Javaru","id":2196944,"node_id":"MDQ6VXNlcjIxOTY5NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2196944?v=4","gravatar_id":"","url":"https://api.github.com/users/Javaru","html_url":"https://github.com/Javaru","followers_url":"https://api.github.com/users/Javaru/followers","following_url":"https://api.github.com/users/Javaru/following{/other_user}","gists_url":"https://api.github.com/users/Javaru/gists{/gist_id}","starred_url":"https://api.github.com/users/Javaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Javaru/subscriptions","organizations_url":"https://api.github.com/users/Javaru/orgs","repos_url":"https://api.github.com/users/Javaru/repos","events_url":"https://api.github.com/users/Javaru/events{/privacy}","received_events_url":"https://api.github.com/users/Javaru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-30T18:16:06Z","updated_at":"2018-06-07T10:00:15Z","closed_at":null,"author_association":"NONE","body":"The MS Windows command line [CreateProcess function has a limit of 32,767 characters](https://blogs.msdn.microsoft.com/oldnewthing/20031210-00/?p=41553). (The CMD.EXE command processor has a 8192 character command line length limit.)  The scalatest plug-in can create a command line exceeding the 32K limit due to a lengthy value for the \"-cp\" argument when there are a large number of dependencies. (We had a classpath value length of 40,529 characters). This issue does not occur with Java tests as the Gradle test plug-in is handling the classpath differently.\n\nToo long of a command line results in the error:\n`java.io.IOException: CreateProcess error=206, The filename or extension is too long`\n\nThe Maven Surefrie (testing) plugin had to deal with this issue -- see [discussion here](http://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html) -- as has other gradle plug-ins such as the [gradle-vaadin-plugin](https://github.com/johndevs/gradle-vaadin-plugin/issues/92), the [FindBugs plugin](https://issues.gradle.org/browse/GRADLE-2167), the [application plugin](https://issues.gradle.org/browse/GRADLE-2992), and others.\n\nThe surefire discussion has some good information on possible solutions. In my borwsing, it appears most Gradle plug-ins are solving this issue via a manifest only jar that has a 'Class-Path' entry with all the JARs to use. \n"},"comment":{"url":"https://api.github.com/repos/maiflai/gradle-scalatest/issues/comments/395364768","html_url":"https://github.com/maiflai/gradle-scalatest/issues/30#issuecomment-395364768","issue_url":"https://api.github.com/repos/maiflai/gradle-scalatest/issues/30","id":395364768,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTM2NDc2OA==","user":{"login":"yasin3061","id":16917696,"node_id":"MDQ6VXNlcjE2OTE3Njk2","avatar_url":"https://avatars2.githubusercontent.com/u/16917696?v=4","gravatar_id":"","url":"https://api.github.com/users/yasin3061","html_url":"https://github.com/yasin3061","followers_url":"https://api.github.com/users/yasin3061/followers","following_url":"https://api.github.com/users/yasin3061/following{/other_user}","gists_url":"https://api.github.com/users/yasin3061/gists{/gist_id}","starred_url":"https://api.github.com/users/yasin3061/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasin3061/subscriptions","organizations_url":"https://api.github.com/users/yasin3061/orgs","repos_url":"https://api.github.com/users/yasin3061/repos","events_url":"https://api.github.com/users/yasin3061/events{/privacy}","received_events_url":"https://api.github.com/users/yasin3061/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T10:00:15Z","updated_at":"2018-06-07T10:00:15Z","author_association":"NONE","body":"Try https://github.com/viswaramamoorthy/gradle-util-plugins"}}
{"actor":{"display_login":"yasin3061"}}