Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /openpsa/addons/funambol/src/java/org/openpsa/sync4j/CalendarSyncSource.java

openpsa
Discussion topic

Back to topic list

CVS update: /openpsa/addons/funambol/src/java/org/openpsa/sync4j/CalendarSyncSource.java

Author juhana
Full name Juhana Hirvilahti
Date 2007-03-02 04:54:13 PST
Message User: juhana
Date: 2007-03-02 04:54:13-0800
Log:
 Testing

File Changes:

Directory: /openpsa/addons/funa​mbol/src/java/org/op​enpsa/sync4j/
====================​====================​====================​====

File [changed]: CalendarSyncSource.java
Url: http://openpsa.tigri​s.org/source/browse/​openpsa/addons/funam​bol/src/java/org/ope​npsa/sync4j/Calendar​SyncSource.java?r1=1​.141&r2=1.142
Delta lines: +13 -0
--------------------
--- CalendarSyncSource.java 2007-03-02 04:21:06-0800 1.141
+++ CalendarSyncSource.java 2007-03-02 04:54:11-0800 1.142
@@ -132,8 +132,21 @@
             ps.setTimestamp(2, utcHack(since));
             ResultSet rs = ps.executeQuery();
             try {
+ try{
+ // Create file
+ FileWriter fstream = new FileWriter("ex2.txt");
+ BufferedWriter out = new BufferedWriter(fstream);
+ out.write("Since: " + since.toString());
+ out.write("Hack: " + utcHack(since);
+ out.write("UnHack: " + utcUnhack(utcHack(since));
+ //Close the output stream
+ out.close();
+ }catch (Exception e){//Catch exception if any
+ System.err.println("Error: " + e.getMessage());
+ }
                 Set guids = new HashSet();
                 while (rs.next()) {
+
                     guids.add(rs.getString(1));
                 }
                 return guids;

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /openpsa/addons/funambol/src/java/org/openpsa/sync4j/CalendarSyncSource.java juhana Juhana Hirvilahti 2007-03-02 04:54:13 PST
Messages per page: