[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-519) URLPackageScanner expects the jar files to contain entries for directories

Matej Novotny (JIRA) issues at jboss.org
Wed Mar 7 10:17:00 EST 2018


    [ https://issues.jboss.org/browse/SHRINKWRAP-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13542910#comment-13542910 ] 

Matej Novotny commented on SHRINKWRAP-519:
------------------------------------------

[~dipakpawar231] This issue presents a potential fix/workaround for testng/jcommander problems you were dealing with in [this|https://github.com/cbeust/testng/issues/1677] and [this|https://github.com/cbeust/jcommander/issues/430] issue.
If Shrinkwrap was able to deal with jars which so not contain entries for directories, then it might bypass those problems.

Although I have no idea how to achieve that.
Matous once tried to fix this on [his branch|https://github.com/MatousJobanek/shrinkwrap/commit/78d331327320e48db255917d07941bf72532f84e] but that fix doesn't seem to work.

> URLPackageScanner expects the jar files to contain entries for directories
> --------------------------------------------------------------------------
>
>                 Key: SHRINKWRAP-519
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-519
>             Project: ShrinkWrap
>          Issue Type: Bug
>            Reporter: Martin Kouba
>
> This is not always the case (it's probably not mandatory for ZIP format). As a result, if you try to add a package (using e.g. {{ClassContainer.addPackages(boolean, Filter<ArchivePath>, String...)}}) located in such a jar, nothing is added to the test archive.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the shrinkwrap-issues mailing list