You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by di...@apache.org on 2006/08/20 03:16:41 UTC
svn commit: r432919 -
/webservices/wss4j/trunk/src/org/apache/ws/security/components/crypto/AbstractCrypto.java
Author: dims
Date: Sat Aug 19 18:16:39 2006
New Revision: 432919
URL: http://svn.apache.org/viewvc?rev=432919&view=rev
Log:
if you can't find it in the class loader, then try the file system
Modified:
webservices/wss4j/trunk/src/org/apache/ws/security/components/crypto/AbstractCrypto.java
Modified: webservices/wss4j/trunk/src/org/apache/ws/security/components/crypto/AbstractCrypto.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/components/crypto/AbstractCrypto.java?rev=432919&r1=432918&r2=432919&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/components/crypto/AbstractCrypto.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/components/crypto/AbstractCrypto.java Sat Aug 19 18:16:39 2006
@@ -86,8 +86,14 @@
}
this.properties = properties;
String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
-
- InputStream is = Loader.getResource(loader, location).openStream();
+
+ InputStream is = null;
+ java.net.URL url = Loader.getResource(loader, location);
+ if(url != null) {
+ is = url.openStream();
+ } else {
+ is = new java.io.FileInputStream(location);
+ }
/**
* If we don't find it, then look on the file system.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org