Author: psharples
Date: Thu Feb  7 11:30:29 2013
New Revision: 1443420

URL: http://svn.apache.org/viewvc?rev=1443420&view=rev
Log:
Fix for bad keystore path under tomcat and windows. See WOOKIE-398

Modified:
    wookie/trunk/src/org/apache/wookie/util/W3CWidgetFactoryUtils.java

Modified: wookie/trunk/src/org/apache/wookie/util/W3CWidgetFactoryUtils.java
URL: 
http://svn.apache.org/viewvc/wookie/trunk/src/org/apache/wookie/util/W3CWidgetFactoryUtils.java?rev=1443420&r1=1443419&r2=1443420&view=diff
==============================================================================
--- wookie/trunk/src/org/apache/wookie/util/W3CWidgetFactoryUtils.java 
(original)
+++ wookie/trunk/src/org/apache/wookie/util/W3CWidgetFactoryUtils.java Thu Feb  
7 11:30:29 2013
@@ -17,6 +17,7 @@
 
 package org.apache.wookie.util;
 
+import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
@@ -76,7 +77,7 @@ public class W3CWidgetFactoryUtils {
             }
             if (stream == null) {
                 FileOutputStream fos = new FileOutputStream(context
-                        .getRealPath("/WEB-INF/classes/") + "generated-" + 
KEYSTORE);
+                        .getRealPath("/WEB-INF/classes") + File.separatorChar 
+ "generated-" + KEYSTORE);
                 keyStore.load(null, PASSWORD.toCharArray());
                 keyStore.store(fos, PASSWORD.toCharArray());
                 fos.close();


Reply via email to