You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2020/02/06 09:16:49 UTC

[tomcat-jakartaee-migration] branch master updated: Fix getParentFile use

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 <re...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org