This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/master by this push:
new a6daea6 Could not move UmlautDirIT project dir.
a6daea6 is described below
commit a6daea6c73ec4c19512749798c49e699b558b77d
Author: tibor.digana <[email protected]>
AuthorDate: Thu Feb 17 20:21:31 2022 +0100
Could not move UmlautDirIT project dir.
---
.../org/apache/maven/surefire/its/fixture/MavenLauncher.java | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git
a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
index 95e6a2e..8dc2465 100755
---
a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
+++
b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
@@ -105,7 +105,16 @@ public final class MavenLauncher
{
FileUtils.deleteDirectory( dest );
//noinspection ResultOfMethodCallIgnored
- getUnpackedAt().renameTo( dest );
+ boolean moved = getUnpackedAt().renameTo( dest );
+ if ( !moved )
+ {
+ String fileEncoding = System.getProperty( "file.encoding" );
+ String os = System.getProperty( "os.name" );
+ String version = System.getProperty( "os.version" );
+ String arch = System.getProperty( "os.arch" );
+ throw new IOException( "Could not move " + getUnpackedAt() + " to
" + dest
+ + " (file.encoding=" + fileEncoding + ", " + os + " " +
version + " " + arch + ")." );
+ }
unpackedAt = dest;
}