Projects
openEuler:Mainline
plexus-archiver
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
_service:tar_scm:plexus-archiver.spec
Changed
@@ -1,6 +1,6 @@ Name: plexus-archiver -Version: 4.2.6 -Release: 2 +Version: 4.2.7 +Release: 1 Epoch: 0 Summary: Plexus Archiver Components License: Apache-2.0 @@ -57,6 +57,9 @@ %changelog +* Fri Jul 28 2023 yaoxin <yao_xin001@hoperun.com> - 0:4.2.7-1 +- Update to 4.2.7 + * Fri Jul 29 2022 liukuo <liukuo@kylinos.cn> - 0:4.2.6-2 - License compliance rectification
View file
_service:tar_scm:plexus-archiver-4.2.6.tar.gz/.github/workflows/codeql-analysis.yml -> _service:tar_scm:plexus-archiver-4.2.7.tar.gz/.github/workflows/codeql-analysis.yml
Changed
@@ -35,7 +35,7 @@ steps: - name: Checkout repository - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2.4.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL
View file
_service:tar_scm:plexus-archiver-4.2.6.tar.gz/.github/workflows/maven.yml -> _service:tar_scm:plexus-archiver-4.2.7.tar.gz/.github/workflows/maven.yml
Changed
@@ -35,7 +35,7 @@ os: 'ubuntu-latest' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v2.4.0 - name: Set up JDK ${{ matrix.Java }} (${{ matrix.distribution }}) uses: actions/setup-java@v2 with:
View file
_service:tar_scm:plexus-archiver-4.2.6.tar.gz/pom.xml -> _service:tar_scm:plexus-archiver-4.2.7.tar.gz/pom.xml
Changed
@@ -10,14 +10,14 @@ </parent> <artifactId>plexus-archiver</artifactId> - <version>4.2.6</version> + <version>4.2.7</version> <name>Plexus Archiver Component</name> <scm> <connection>scm:git:git@github.com:codehaus-plexus/plexus-archiver.git</connection> <developerConnection>scm:git:git@github.com:codehaus-plexus/plexus-archiver.git</developerConnection> <url>http://github.com/codehaus-plexus/plexus-archiver/tree/${project.scm.tag}/</url> - <tag>plexus-archiver-4.2.6</tag> + <tag>plexus-archiver-4.2.7</tag> </scm> <issueManagement> <system>jira</system> @@ -32,7 +32,7 @@ <properties> <javaVersion>7</javaVersion> - <project.build.outputTimestamp>2021-11-12T19:17:43Z</project.build.outputTimestamp> + <project.build.outputTimestamp>2022-01-02T11:11:33Z</project.build.outputTimestamp> </properties> <contributors>
View file
_service:tar_scm:plexus-archiver-4.2.6.tar.gz/src/main/java/org/codehaus/plexus/archiver/zip/ConcurrentJarCreator.java -> _service:tar_scm:plexus-archiver-4.2.7.tar.gz/src/main/java/org/codehaus/plexus/archiver/zip/ConcurrentJarCreator.java
Changed
@@ -44,12 +44,12 @@ private final boolean compressAddedZips; - private final ScatterZipOutputStream directories; - private final ScatterZipOutputStream metaInfDir; private final ScatterZipOutputStream manifest; + private final ScatterZipOutputStream directories; + private final ScatterZipOutputStream synchronousEntries; private final ParallelScatterZipCreator parallelScatterZipCreator; @@ -123,9 +123,9 @@ { this.compressAddedZips = compressAddedZips; ScatterGatherBackingStoreSupplier defaultSupplier = new DeferredSupplier( 100000000 / nThreads ); - directories = createDeferred( defaultSupplier ); - manifest = createDeferred( defaultSupplier ); metaInfDir = createDeferred( defaultSupplier ); + manifest = createDeferred( defaultSupplier ); + directories = createDeferred( defaultSupplier ); synchronousEntries = createDeferred( defaultSupplier ); parallelScatterZipCreator = new ParallelScatterZipCreator( Executors.newFixedThreadPool( nThreads ), defaultSupplier ); @@ -152,20 +152,10 @@ { throw new IllegalArgumentException( "Method must be set on the supplied zipArchiveEntry" ); } - if ( zipArchiveEntry.isDirectory() && !zipArchiveEntry.isUnixSymlink() ) - { - final ByteArrayInputStream payload = new ByteArrayInputStream( new byte - { - } ); - - directories.addArchiveEntry( createZipArchiveEntryRequest( zipArchiveEntry, createInputStreamSupplier( - payload ) ) ); - - payload.close(); - } - else if ( "META-INF".equals( zipArchiveEntry.getName() ) || "META-INF/".equals( zipArchiveEntry.getName() ) ) + if ( "META-INF".equals( zipArchiveEntry.getName() ) || "META-INF/".equals( zipArchiveEntry.getName() ) ) { InputStream payload = source.get(); + // TODO This should be enforced because META-INF non-directory does not make any sense?! if ( zipArchiveEntry.isDirectory() ) { zipArchiveEntry.setMethod( ZipEntry.STORED ); @@ -178,6 +168,7 @@ else if ( "META-INF/MANIFEST.MF".equals( zipArchiveEntry.getName() ) ) { InputStream payload = source.get(); + // TODO This should be enforced because META-INF/MANIFEST as non-file does not make any sense?! if ( zipArchiveEntry.isDirectory() ) { zipArchiveEntry.setMethod( ZipEntry.STORED ); @@ -187,6 +178,17 @@ payload.close(); } + else if ( zipArchiveEntry.isDirectory() && !zipArchiveEntry.isUnixSymlink() ) + { + final ByteArrayInputStream payload = new ByteArrayInputStream( new byte + { + } ); + + directories.addArchiveEntry( createZipArchiveEntryRequest( zipArchiveEntry, createInputStreamSupplier( + payload ) ) ); + + payload.close(); + } else if ( addInParallel ) { parallelScatterZipCreator.addArchiveEntry( createEntrySupplier( zipArchiveEntry, source ) );
View file
_service:tar_scm:plexus-archiver-4.2.6.tar.gz/src/test/java/org/codehaus/plexus/archiver/jar/BaseJarArchiverTest.java -> _service:tar_scm:plexus-archiver-4.2.7.tar.gz/src/test/java/org/codehaus/plexus/archiver/jar/BaseJarArchiverTest.java
Changed
@@ -26,9 +26,11 @@ import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Paths; +import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; +import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; @@ -55,8 +57,11 @@ // verify that the JAR file is created and contains the expected files try ( ZipFile resultingArchive = new ZipFile( jarFile ) ) { - // verify that the JAR file contains manifest file - assertNotNull( resultingArchive.getEntry( "META-INF/MANIFEST.MF" ) ); + // verify that the JAR file contains manifest directory and file + // and that those are the first two entries. + Enumeration<? extends ZipEntry> resultingEntries = resultingArchive.entries(); + assertEquals( "META-INF/", resultingEntries.nextElement().getName() ); + assertEquals( "META-INF/MANIFEST.MF", resultingEntries.nextElement().getName() ); // verify the JAR contains the class and it is not corrupted ZipEntry classFileEntry = resultingArchive.getEntry( "com/example/app/Main.class" );
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2