elharo commented on code in PR #308:
URL: 
https://github.com/apache/maven-remote-resources-plugin/pull/308#discussion_r4234655580


##########
src/main/java/org/apache/maven/plugin/resources/remote/AbstractProcessRemoteResourcesMojo.java:
##########
@@ -992,6 +995,24 @@ protected void processResourceBundles(ClassLoader 
classLoader, VelocityContext c
         }
     }
 
+    static File resolveOutputFile(File outputDirectory, String resourceName)
+            throws IOException, MojoExecutionException {
+        return resolveOutputFile(outputDirectory, 
outputDirectory.getCanonicalFile(), resourceName);
+    }
+
+    private static File resolveOutputFile(File outputDirectory, File 
canonicalOutputDirectory, String resourceName)
+            throws IOException, MojoExecutionException {
+        if (new File(resourceName).isAbsolute()) {
+            throw new 
MojoExecutionException(INVALID_REMOTE_RESOURCE_PATH_MESSAGE + resourceName);

Review Comment:
   no. The way to handle this is to use specific different messages for each 
different case



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to