You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GitBox <gi...@apache.org> on 2020/07/22 02:50:44 UTC

[GitHub] [tomcat-maven-plugin] liudongmiao commented on a change in pull request #30: Tc9.x Initial suport for Tomact9

liudongmiao commented on a change in pull request #30:
URL: https://github.com/apache/tomcat-maven-plugin/pull/30#discussion_r458502517



##########
File path: tomcat9-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat9/run/RunMojo.java
##########
@@ -479,18 +480,23 @@ private WebResource urlToWebResource( URL url, String path )
                                 jarFile = new JarFile( filePath );
 
                                 JarEntry jarEntry = jarFile.getJarEntry( StringUtils.removeStart( path, "/" ) );
-
+/*
                                 return new JarResource( this, //
                                                         getPath(), //
                                                         filePath, //
                                                         url.getPath().substring( 0, idx ), //
                                                         jarEntry, //
                                                         "", //
                                                         null );
+                                */
+                                
+                                JarResourceSet jr = new JarResourceSet(context.getResources(), getPath(), filePath, getPath());

Review comment:
       original internal path is `""`, and set to `getPath()`, please verify as `"/"`, or `getPath()`.




----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org