Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-192

Install OSGi bundles in memory

    XMLWordPrintable

    Details

      Description

      Currently the OSGiDeploymentPackager transforms a JavaArchive into a VF

      private VirtualFile toVirtualFile(Archive<?> archive) throws IOException, MalformedURLException

      { // [TODO] Can this be done in memory? ZipExporter exporter = archive.as(ZipExporter.class); String archiveName = archive.getName(); int dotIndex = archiveName.lastIndexOf("."); if (dotIndex > 0) archiveName = archiveName.substring(0, dotIndex); File target = File.createTempFile(archiveName + "-", ".jar"); exporter.exportZip(target, true); target.deleteOnExit(); return AbstractVFS.getRoot(target.toURI().toURL()); }

      We should be able to install the Archive directly and in-memory

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                thomas.diesler Thomas Diesler
                Reporter:
                thomas.diesler Thomas Diesler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: