resource-loader icon indicating copy to clipboard operation
resource-loader copied to clipboard

Getting files out of a JAR or loading a shared library is difficult. We made it easy.

Results 8 resource-loader issues
Sort by recently updated
recently updated
newest added

Added conversion to a URL for the Spring Boot 3.2 nested URL syntax

When using Spring Boot 3.2, the path to the referenced jar is of the format: `nested:/app/appName.jar/!BOOT-INF/lib/lazysodium-java-5.1.4.jar` The “nested:” comes from the new https://docs.spring.io/spring-boot/docs/current/reference/html/executable-jar.html format. And also notice the `/!` separator...

Without this loading bundled the bundled `libsodium` using `lazy-sodium` will fail, if the jar is in a directory containing spaces.

``` Caused by: java.io.IOException: Failed to list contents of file:/code/build/libs/MyProject.war!/WEB-INF/lib/lazysodium-java-5.1.4.jar!/arm64/libsodium.so at com.goterl.resourceloader.ResourceLoader.doCopyDirectory(ResourceLoader.java:372) at com.goterl.resourceloader.ResourceLoader.copyDirectory(ResourceLoader.java:364) at com.goterl.resourceloader.ResourceLoader.getFileFromFileSystem(ResourceLoader.java:258) at com.goterl.resourceloader.ResourceLoader.copyToTempDirectory(ResourceLoader.java:88) at com.goterl.resourceloader.SharedLibraryLoader.load(SharedLibraryLoader.java:53) ``` Are there any plans to support .war files?

Would this library benefit from being converted to Kotlin to help increase developer participation?

help wanted

This PR adds the ability for the library to load file resource (not directory though) when it is run in a modular runtime image application that was created with JLink,...

I think the import for org.slj4j in your MANIFEST.MF is wrong. Is this really required? Manifest-Version: 1.0 Bnd-LastModified: 1617569345955 Bundle-ManifestVersion: 2 Bundle-Name: resource-loader Bundle-SymbolicName: resource-loader Bundle-Version: 2.0.1 Created-By: 1.8.0_172 (Oracle...

It's my resource folder ![image](https://user-images.githubusercontent.com/439337/127128157-ba427fa9-7045-44d0-8fc6-bca20e437dc8.png) My code ``` @Component public class TableConfigFactory { private static final String UPLOAD_DIR = "upload"; ... public TableConfigFactory(ObjectMapper objectMapper) throws IOException, URISyntaxException { this.objectMapper =...