|
@@ -149,6 +149,11 @@ public abstract class ResourceAdapter {
|
|
return IoUtils.files(this.file, suffix).stream().map(it -> new FileResource(it,this.readonly)).collect(Collectors.toList());
|
|
return IoUtils.files(this.file, suffix).stream().map(it -> new FileResource(it,this.readonly)).collect(Collectors.toList());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public String getAbsolutePath(){
|
|
|
|
+ return this.file.getAbsolutePath();
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public String toString() {
|
|
public String toString() {
|
|
return String.format("file resource [%s]", this.file.getAbsolutePath());
|
|
return String.format("file resource [%s]", this.file.getAbsolutePath());
|
|
@@ -247,6 +252,11 @@ public abstract class ResourceAdapter {
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public String getAbsolutePath() {
|
|
|
|
+ return this.jarFile.getName() + "/" + this.entryName;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public String toString() {
|
|
public String toString() {
|
|
return String.format("class path resource [%s]", this.entryName);
|
|
return String.format("class path resource [%s]", this.entryName);
|