Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Java-SCA-1.x
-
None
-
Windows XP, SP2, IBM JDK 1.5
-
Patch Available
Description
Implementation-Spring Location attribute currently does not support archive file or directory as the target uri.
Specs: The location attribute of that element specifies the target uri of an archive file or directory that contains the Spring
application context files. The resource paths to the Spring application context configuration files that are used to create the application context are then identified as follows:
If the resource identified by the location attribute is an archive file, then the file META-INF/MANIFEST.MF is read from the archive. If the location URI identifies a directory, then META-INF/MANIFEST.MF must exist underneath that directory. If the manifest file contains a header "Spring-Context" of the format:
Spring-Context ::= path ( ';' path )*
Where path is a relative path with respect to the location URI, then the set of paths specified in the header identify the context configuration files. If there is no MANIFEST.MF file or no Spring-Context header within that file, then the default behaviour is to build an application context using all the *.xml files in the METAINF/spring directory.