This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-jakartaee-migration.git


The following commit(s) were added to refs/heads/master by this push:
     new 3bf999d  Fix getParentFile use
3bf999d is described below

commit 3bf999de4418294b96b68d17cee641b486ad39bf
Author: remm <[email protected]>
AuthorDate: Thu Feb 6 10:16:34 2020 +0100

    Fix getParentFile use
---
 src/main/java/org/apache/tomcat/jakartaee/Migration.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/tomcat/jakartaee/Migration.java 
b/src/main/java/org/apache/tomcat/jakartaee/Migration.java
index 9870a82..04e073a 100644
--- a/src/main/java/org/apache/tomcat/jakartaee/Migration.java
+++ b/src/main/java/org/apache/tomcat/jakartaee/Migration.java
@@ -83,7 +83,7 @@ public class Migration {
             }
         } else {
             // Single file
-            File parentDestination = destination.getParentFile();
+            File parentDestination = 
destination.getAbsoluteFile().getParentFile();
             if (parentDestination.exists() || parentDestination.mkdirs()) {
                 result = result && migrateFile(source, destination);
             } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to