| Summary: | Feature#readJar fails with ZipException for .DS_Store files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Karsten Thoms <karsten.thoms> | ||||
| Component: | Tycho | Assignee: | Tobias Oberlies <t-oberlies> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jan.sievers, mail | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Karsten Thoms
Does this issue still occur with 0.13.0-SNAPSHOT? originally reported as https://issues.sonatype.org/browse/TYCHO-387 Still occurs in 0.13.0-SNAPSHOT. I built from the sources. Thread [main] (Suspended (exception ZipException)) ZipFile.open(String, int, long, boolean) line: not available [native method] JarFile(ZipFile).<init>(File, int) line: 127 JarFile.<init>(File, boolean, int) line: 135 JarFile.<init>(File) line: 99 Feature.readJar(File) line: 172 Feature.loadFeature(File) line: 198 LocalTargetPlatformResolver.resolvePlatform(MavenSession, MavenProject, List<ReactorProject>, List<Dependency>) line: 110 DefaultTychoDependencyResolver.resolveProject(MavenSession, MavenProject, List<ReactorProject>) line: 90 TychoMavenLifecycleParticipant.afterProjectsRead(MavenSession) line: 91 DefaultMaven.doExecute(MavenExecutionRequest) line: 273 DefaultMaven.execute(MavenExecutionRequest) line: 156 MavenCli.execute(MavenCli$CliRequest) line: 534 MavenCli.doMain(MavenCli$CliRequest) line: 196 MavenCli.main(String[], ClassWorld) line: 141 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 Launcher.launchEnhanced(String[]) line: 290 Launcher.launch(String[]) line: 230 Launcher.mainWithExitCode(String[]) line: 409 Launcher.main(String[]) line: 352 (In reply to comment #3) > Still occurs in 0.13.0-SNAPSHOT. I built from the sources. So it was only discussed, but unfortunately not yet solved. Thanks for verifying this. Btw. you can also get 0.13.0-SNAPSHOT from Tycho's CI build (see http://www.eclipse.org/tycho/download.php ) Created attachment 202674 [details]
proposed patch (filter files in the featurs directory)
Uses a FileFilter which filters out dot files and accepts only jar files and directories in the feature folder as candidates for features.
Applied patch in master (b363c9e). Thank you Holger! |