Author: dieppe
Date: 2008-02-26 03:14:36 +0000 (Tue, 26 Feb 2008)
New Revision: 18156

Modified:
   trunk/apps/thingamablog/src/net/sf/thingamablog/blog/TBWeblog.java
   trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java
   trunk/apps/thingamablog/src/net/sf/thingamablog/xml/TBPersistFactory.java
Log:
1.4 compatibility


Modified: trunk/apps/thingamablog/src/net/sf/thingamablog/blog/TBWeblog.java
===================================================================
--- trunk/apps/thingamablog/src/net/sf/thingamablog/blog/TBWeblog.java  
2008-02-26 03:08:30 UTC (rev 18155)
+++ trunk/apps/thingamablog/src/net/sf/thingamablog/blog/TBWeblog.java  
2008-02-26 03:14:36 UTC (rev 18156)
@@ -1000,7 +1000,7 @@
                        {
                             Object element = e.nextElement();
                             File f = (File)element;
-                            
if(!f.getAbsolutePath().contains(webFilesDirectory.getAbsolutePath()))
+                            
if(f.getAbsolutePath().indexOf(webFilesDirectory.getAbsolutePath()) > -1)
                                f.delete();                             
                        }
                        catch(ClassCastException cce){}

Modified: 
trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java
===================================================================
--- trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java 
2008-02-26 03:08:30 UTC (rev 18155)
+++ trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java 
2008-02-26 03:14:36 UTC (rev 18156)
@@ -162,7 +162,7 @@
                     int succeeded = Integer.parseInt(message.get("Succeeded"));
                     int fatal = Integer.parseInt(message.get("FatallyFailed"));
                     int failed = Integer.parseInt(message.get("Failed"));
-                    boolean finalized = 
Boolean.parseBoolean(message.get("FinalizedTotal"));
+                    boolean finalized = 
Boolean.valueOf(message.get("FinalizedTotal")).booleanValue();
                     tp.bytesTransferred(succeeded);
                 }
                 success = "PutSuccessful".equals(messageName);

Modified: 
trunk/apps/thingamablog/src/net/sf/thingamablog/xml/TBPersistFactory.java
===================================================================
--- trunk/apps/thingamablog/src/net/sf/thingamablog/xml/TBPersistFactory.java   
2008-02-26 03:08:30 UTC (rev 18155)
+++ trunk/apps/thingamablog/src/net/sf/thingamablog/xml/TBPersistFactory.java   
2008-02-26 03:14:36 UTC (rev 18156)
@@ -563,7 +563,7 @@
                        weblog.setLastPublishDate(new Date(time));
                }
                catch(Exception ex){}
-        
weblog.setPublishFailed(Boolean.parseBoolean(blogEle.getAttributeValue("publish_failed",
 "false")));
+        
weblog.setPublishFailed(Boolean.valueOf(blogEle.getAttributeValue("publish_failed",
 "false")).booleanValue());

         return weblog; //element wasn't a known type
        }
@@ -761,10 +761,10 @@
         Element mailSettings = parent.getChild("MailSettings");
         if(mailSettings == null)
             return;
-        
blog.setImportFromEmailEnabled(Boolean.parseBoolean(mailSettings.getAttributeValue("enabled",
 "true")));
+        
blog.setImportFromEmailEnabled(Boolean.valueOf(mailSettings.getAttributeValue("enabled",
 "true")).booleanValue());
         
blog.setLastEmailCheck(parseDate(mailSettings.getAttributeValue("last_check", 
"0")));
         
blog.setOutdatedAfterMinutes(parseInt(mailSettings.getAttributeValue("check_minutes",
 "30"), 30));
-        
blog.setMailCheckFailed(Boolean.parseBoolean(mailSettings.getAttributeValue("check_failed",
 "false")));
+        
blog.setMailCheckFailed(Boolean.valueOf(mailSettings.getAttributeValue("check_failed",
 "false")).booleanValue());

         Element transport = mailSettings.getChild("MailTransport");
         if(transport == null)


Reply via email to