Class Pack200Archiver

    • Constructor Summary

      Constructors 
      Constructor Description
      Pack200Archiver()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void assertSupportedEclipseInf​(EclipseInf eclipseInf)  
      private void copyJarEntry​(java.util.jar.JarFile jarFile, java.util.jar.JarEntry entry, java.util.jar.JarOutputStream jos)  
      private Pack200Wrapper getPackWrapper​(boolean fork)  
      private boolean isSigned​(java.util.jar.JarFile jarFile)  
      boolean normalize​(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.io.File file, java.io.File packFile, boolean fork)  
      boolean pack​(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.io.File file, java.io.File packFile, boolean fork)  
      void unpack​(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.io.File packFile, java.io.File jarFile, boolean fork)  
      private void updateEclipseInf​(java.util.jar.JarFile jarFile, EclipseInf eclipseInf, java.io.File tmpFile)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        @Requirement
        private org.codehaus.plexus.logging.Logger log
    • Constructor Detail

      • Pack200Archiver

        public Pack200Archiver()
    • Method Detail

      • normalize

        public boolean normalize​(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts,
                                 java.io.File file,
                                 java.io.File packFile,
                                 boolean fork)
                          throws java.io.IOException
        Parameters:
        file - source jar file
        packFile - target pack file
        Returns:
        true if the target pack file was created, false if the target file was not created
        Throws:
        java.io.IOException
      • getPackWrapper

        private Pack200Wrapper getPackWrapper​(boolean fork)
      • assertSupportedEclipseInf

        protected void assertSupportedEclipseInf​(EclipseInf eclipseInf)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • updateEclipseInf

        private void updateEclipseInf​(java.util.jar.JarFile jarFile,
                                      EclipseInf eclipseInf,
                                      java.io.File tmpFile)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • isSigned

        private boolean isSigned​(java.util.jar.JarFile jarFile)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • copyJarEntry

        private void copyJarEntry​(java.util.jar.JarFile jarFile,
                                  java.util.jar.JarEntry entry,
                                  java.util.jar.JarOutputStream jos)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • unpack

        public void unpack​(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts,
                           java.io.File packFile,
                           java.io.File jarFile,
                           boolean fork)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • pack

        public boolean pack​(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts,
                            java.io.File file,
                            java.io.File packFile,
                            boolean fork)
                     throws java.io.IOException
        Throws:
        java.io.IOException