cziegeler commented on a change in pull request #12: SLING-8421: Allow artifact
providers that work with URLs instead of F…
URL:
https://github.com/apache/sling-org-apache-sling-feature-io/pull/12#discussion_r284983694
##########
File path: src/main/java/org/apache/sling/feature/io/file/ArtifactHandler.java
##########
@@ -55,4 +57,16 @@ public String getUrl() {
public File getFile() {
return file;
}
+
+ public URL getLocalURL() {
+ File result = getFile();
+ try
+ {
+ return result != null ? file.toURI().toURL() : null;
+ }
+ catch (MalformedURLException e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
}
Review comment:
As this is adding API, the package version needs to be increased
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services