Skip to content

Commit 4ad439e

Browse files
committed
Upgraded p-io
1 parent 3decb08 commit 4ad439e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<dependency>
5656
<groupId>org.codehaus.plexus</groupId>
5757
<artifactId>plexus-io</artifactId>
58-
<version>2.0.10</version>
58+
<version>2.0.11</version>
5959
</dependency>
6060
<dependency>
6161
<groupId>org.apache.commons</groupId>

src/test/java/org/codehaus/plexus/archiver/tar/TarFileAttributesTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public void testUseAttributesFromTarArchiveInputInTarArchiverOutput()
140140
PlexusIoResourceAttributes fileAttributes =
141141
PlexusIoResourceAttributeUtils.getFileAttributes( new File( tempTarDir, tempFile.getName() ) );
142142

143-
assertEquals( "644", fileAttributes.getOctalModeString() );
143+
assertEquals( "This test will fail if your umask is not X2X (or more)",
144+
"644", fileAttributes.getOctalModeString() );
144145
}
145146

146147
public void testUseDetectedFileAttributes()
@@ -200,7 +201,8 @@ public void testUseDetectedFileAttributes()
200201

201202
fileAttributes = PlexusIoResourceAttributeUtils.getFileAttributes( new File( tempTarDir, tempFile.getName() ) );
202203

203-
assertEquals( "444", fileAttributes.getOctalModeString() );
204+
assertEquals( "This test will fail if your umask is not X2X (or more)",
205+
"444", fileAttributes.getOctalModeString() );
204206
}
205207

206208
private boolean checkForWindows()
@@ -266,7 +268,8 @@ public void testOverrideDetectedFileAttributes()
266268
PlexusIoResourceAttributes fileAttributes =
267269
PlexusIoResourceAttributeUtils.getFileAttributes( new File( tempTarDir, tempFile.getName() ) );
268270

269-
assertEquals( "644", fileAttributes.getOctalModeString() );
271+
assertEquals( "This test will fail if your umask is not X2X (or more)",
272+
"644", fileAttributes.getOctalModeString() );
270273
}
271274

272275
public void testOverrideDetectedFileAttributesUsingFileMode()
@@ -323,7 +326,8 @@ public void testOverrideDetectedFileAttributesUsingFileMode()
323326
PlexusIoResourceAttributes fileAttributes =
324327
PlexusIoResourceAttributeUtils.getFileAttributes( new File( tempTarDir, tempFile.getName() ) );
325328

326-
assertEquals( "644", fileAttributes.getOctalModeString() );
329+
assertEquals( "This test will fail if your umask is not X2X (or more)",
330+
"644", fileAttributes.getOctalModeString() );
327331
}
328332

329333
}

0 commit comments

Comments
 (0)