Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-348

Deleting a directory specified by a File with a trailing slash does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.0-alpha-1
    • 1.0.0-cr-2
    • None
    • None

      We have a directory gwtutil with 10+ classes in there, which we want to delete from the archive

      This does nothing, it does not even fail-fast:

      webArchive.delete(ArchivePaths.create("WEB-INF/classes/org/drools/guvnor/gwtutil/"));
      

      This does work:

      webArchive.delete(ArchivePaths.create("WEB-INF/classes/org/drools/guvnor/gwtutil"));
      

      The difference is the absence of the trailing /.

      Using arquillian bom CR5

              tommysdk Tommy Tynjä (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: