Created
July 3, 2011 21:56
-
-
Save vorburger/1062653 to your computer and use it in GitHub Desktop.
List all resources under a certain directory on the Classpath (using Spring)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.core.io.Resource; | |
| import org.springframework.core.io.support.PathMatchingResourcePatternResolver; | |
| import org.springframework.core.io.support.ResourcePatternResolver; | |
| ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); | |
| Resource[] resources = resolver.getResources(ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + "/META-INF/resources/birt/**"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment