|
|
|
@ -17,6 +17,7 @@ |
|
|
|
package org.springframework.security.core; |
|
|
|
package org.springframework.security.core; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
|
|
|
|
import java.io.InputStream; |
|
|
|
import java.util.Properties; |
|
|
|
import java.util.Properties; |
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
@ -103,9 +104,9 @@ public final class SpringSecurityCoreVersion { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private static String getSpringVersion() { |
|
|
|
private static String getSpringVersion() { |
|
|
|
Properties properties = new Properties(); |
|
|
|
Properties properties = new Properties(); |
|
|
|
try { |
|
|
|
try (InputStream is = SpringSecurityCoreVersion.class.getClassLoader() |
|
|
|
properties.load(SpringSecurityCoreVersion.class.getClassLoader() |
|
|
|
.getResourceAsStream("META-INF/spring-security.versions")) { |
|
|
|
.getResourceAsStream("META-INF/spring-security.versions")); |
|
|
|
properties.load(is); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (IOException | NullPointerException ex) { |
|
|
|
catch (IOException | NullPointerException ex) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
|