You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/03/30 15:21:56 UTC

[GitHub] [maven-javadoc-plugin] weissreto commented on a change in pull request #27: MJAVADOC-617 Normalize module path so that '..' in the path are resolved

weissreto commented on a change in pull request #27: MJAVADOC-617 Normalize module path so that '..' in the path are resolved
URL: https://github.com/apache/maven-javadoc-plugin/pull/27#discussion_r400278728
 
 

 ##########
 File path: src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
 ##########
 @@ -2393,7 +2393,7 @@ protected void executeReport( Locale unusedLocale )
         List<Path> modulePaths = new LinkedList<>();
         for ( String module :  aggregatedProject.getModules() )
         {
-            modulePaths.add( new File( aggregatedProject.getBasedir(), module ).toPath() );
+            modulePaths.add( new File( aggregatedProject.getBasedir(), module ).toPath().normalize() );
 
 Review comment:
   Have simpified code to use only class Path and not File.
   Added also a regression test for the issue

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services