H
HK
Hi,
with ClassLoader.getSystemResource() I have access to
specific files on the CLASSPATH, in particular to
files stored in the jar file in which the
application resides.
Question: is there a way to list all resources
in a given subdirectory that is stored in a jar
file.
The idea is to have a bunch of configuration
files which discribe certain services. The application
should figure out itself which services were
shipped with it. I could of course add a
file which lists the available services, but
this would be superfluous if I could
list the resource files.
Harald.
with ClassLoader.getSystemResource() I have access to
specific files on the CLASSPATH, in particular to
files stored in the jar file in which the
application resides.
Question: is there a way to list all resources
in a given subdirectory that is stored in a jar
file.
The idea is to have a bunch of configuration
files which discribe certain services. The application
should figure out itself which services were
shipped with it. I could of course add a
file which lists the available services, but
this would be superfluous if I could
list the resource files.
Harald.