{"action":"created","issue":{"url":"https://api.github.com/repos/bndtools/bndtools/issues/1834","repository_url":"https://api.github.com/repos/bndtools/bndtools","labels_url":"https://api.github.com/repos/bndtools/bndtools/issues/1834/labels{/name}","comments_url":"https://api.github.com/repos/bndtools/bndtools/issues/1834/comments","events_url":"https://api.github.com/repos/bndtools/bndtools/issues/1834/events","html_url":"https://github.com/bndtools/bndtools/issues/1834","id":298427723,"number":1834,"title":"Windows: Build fails out-of-box when home directory is redirected to a network share","user":{"login":"kriegfrj","id":7224087,"avatar_url":"https://avatars0.githubusercontent.com/u/7224087?v=4","gravatar_id":"","url":"https://api.github.com/users/kriegfrj","html_url":"https://github.com/kriegfrj","followers_url":"https://api.github.com/users/kriegfrj/followers","following_url":"https://api.github.com/users/kriegfrj/following{/other_user}","gists_url":"https://api.github.com/users/kriegfrj/gists{/gist_id}","starred_url":"https://api.github.com/users/kriegfrj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriegfrj/subscriptions","organizations_url":"https://api.github.com/users/kriegfrj/orgs","repos_url":"https://api.github.com/users/kriegfrj/repos","events_url":"https://api.github.com/users/kriegfrj/events{/privacy}","received_events_url":"https://api.github.com/users/kriegfrj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-19T23:28:43Z","updated_at":"2018-02-23T15:20:29Z","closed_at":null,"author_association":"NONE","body":"Hello all,\r\n\r\nI pray everyone is well.\r\n\r\nI have just started playing with bndtools (great project, by the way). My environment is:\r\n* Windows 10\r\n* jdk 1.8.0_131\r\n* bndtools HEAD (specifically: `4.0.0.DEV-20180215-210111-g9a8b134`).\r\n\r\nOur corporate environment includes group policies that redirects our home directory to a network share. \r\n\r\nWhen I import bndtools to start working on it, I get a ton of build errors with a root error of:\r\n\r\n````\r\nbndtools.bndplugins.repos: Exception: java.nio.file.InvalidPathException: Illegal character [:] in path at index 10: \\\\server/C:/Program Files/Java/jdk1.8.0_131/jre/lib/rt.jar\r\n\tat sun.nio.fs.WindowsPathParser.nextSlash(WindowsPathParser.java:212)\r\n\tat sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:116)\r\n\tat sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)\r\n\tat sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)\r\n\tat sun.nio.fs.WindowsUriSupport.fromUri(WindowsUriSupport.java:165)\r\n\tat sun.nio.fs.WindowsFileSystemProvider.getPath(WindowsFileSystemProvider.java:92)\r\n\tat java.nio.file.Paths.get(Paths.java:138)\r\n\tat aQute.bnd.osgi.Resource.fromURL(Resource.java:38)\r\n\tat aQute.bnd.osgi.Analyzer.findClass(Analyzer.java:2830)\r\n\tat aQute.bnd.xmlattribute.XMLAttributeFinder.getXMLAttribute(XMLAttributeFinder.java:30)\r\n\tat aQute.bnd.metatype.OCDReader$OCDDataCollector.annotation(OCDReader.java:165)\r\n\tat aQute.bnd.osgi.Clazz.doAnnotations(Clazz.java:1517)\r\n\tat aQute.bnd.osgi.Clazz.doAttribute(Clazz.java:987)\r\n\tat aQute.bnd.osgi.Clazz.doAttributes(Clazz.java:966)\r\n\tat aQute.bnd.osgi.Clazz.parseClassFileData(Clazz.java:764)\r\n\tat aQute.bnd.osgi.Clazz.parseClassFileData(Clazz.java:508)\r\n\tat aQute.bnd.osgi.Clazz.parseClassFileWithCollector(Clazz.java:493)\r\n\tat aQute.bnd.metatype.OCDReader.getDef(OCDReader.java:58)\r\n\tat aQute.bnd.metatype.OCDReader.getOCDDef(OCDReader.java:54)\r\n\tat aQute.bnd.metatype.MetatypeAnnotations.analyzeJar(MetatypeAnnotations.java:110)\r\n\tat aQute.bnd.osgi.Analyzer.doPlugins(Analyzer.java:746)\r\n\tat aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:220)\r\n\tat aQute.bnd.osgi.Builder.analyze(Builder.java:386)\r\n\tat aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:776)\r\n\tat aQute.bnd.osgi.Builder.build(Builder.java:107)\r\n\tat aQute.bnd.osgi.Builder.builds(Builder.java:1295)\r\n\tat aQute.bnd.build.ProjectBuilder.builds(ProjectBuilder.java:578)\r\n\tat aQute.bnd.build.Project.buildLocal(Project.java:1802)\r\n\tat aQute.bnd.build.Project.build(Project.java:1619)\r\n\tat aQute.bnd.build.Project.build(Project.java:2240)\r\n\tat org.bndtools.builder.BndtoolsBuilder.lambda$build$0(BndtoolsBuilder.java:242)\r\n\tat bndtools.central.Central.bndCall(Central.java:627)\r\n\tat org.bndtools.builder.BndtoolsBuilder.build(BndtoolsBuilder.java:122)\r\n\tat org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)\r\n\tat org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)\r\n\tat org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)\r\n````\r\n\r\n...where `server` is the internal name of our file server where the redirected home folders are pointed.\r\n\r\nIt seems that, at some point, bndtools is making an assumption about the path structure which doesn't take this possibility into account. I also think it's a bit strange that my home directory path somehow gets tangled up with an attempt to calculate the path to `JAVA_HOME`."},"comment":{"url":"https://api.github.com/repos/bndtools/bndtools/issues/comments/368038516","html_url":"https://github.com/bndtools/bndtools/issues/1834#issuecomment-368038516","issue_url":"https://api.github.com/repos/bndtools/bndtools/issues/1834","id":368038516,"user":{"login":"bjhargrave","id":277682,"avatar_url":"https://avatars1.githubusercontent.com/u/277682?v=4","gravatar_id":"","url":"https://api.github.com/users/bjhargrave","html_url":"https://github.com/bjhargrave","followers_url":"https://api.github.com/users/bjhargrave/followers","following_url":"https://api.github.com/users/bjhargrave/following{/other_user}","gists_url":"https://api.github.com/users/bjhargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/bjhargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjhargrave/subscriptions","organizations_url":"https://api.github.com/users/bjhargrave/orgs","repos_url":"https://api.github.com/users/bjhargrave/repos","events_url":"https://api.github.com/users/bjhargrave/events{/privacy}","received_events_url":"https://api.github.com/users/bjhargrave/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T15:20:29Z","updated_at":"2018-02-23T15:20:29Z","author_association":"OWNER","body":"I was not suggesting you build Bnd with code changes. I was suggested you take that snippet of code into a small java class and experiment on your system. "}}
{"actor":{"display_login":"bjhargrave"}}