buildframework/helium/sf/java/core/src/com/nokia/helium/core/ant/listener/TargetTimesLogGeneratorListener.java
changeset 628 7c4a911dc066
parent 588 c7c26511138f
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    15  *
    15  *
    16  */
    16  */
    17 package com.nokia.helium.core.ant.listener;
    17 package com.nokia.helium.core.ant.listener;
    18 
    18 
    19 import java.io.DataOutputStream;
    19 import java.io.DataOutputStream;
       
    20 import java.io.File;
    20 import java.io.FileOutputStream;
    21 import java.io.FileOutputStream;
    21 import java.io.File;
       
    22 import java.util.ArrayList;
    22 import java.util.ArrayList;
    23 import java.util.Date;
    23 import java.util.Date;
    24 import java.util.List;
    24 import java.util.List;
    25 import java.util.concurrent.TimeUnit;
    25 import java.util.concurrent.TimeUnit;
    26 
    26 
    90                 {
    90                 {
    91                     FileOutputStream timesLogFileStream = new FileOutputStream(
    91                     FileOutputStream timesLogFileStream = new FileOutputStream(
    92                             targetTimesLogCsv, true);
    92                             targetTimesLogCsv, true);
    93                     timesLogOut = new DataOutputStream(timesLogFileStream);
    93                     timesLogOut = new DataOutputStream(timesLogFileStream);
    94                     // Display (sorted) hashtable.
    94                     // Display (sorted) hashtable.
    95                     for (String targetTime : targetTimesTable)
    95                     for (String targetTime : targetTimesTable) {
    96                         timesLogOut.writeBytes(targetTime + "\n");
    96                         timesLogOut.writeBytes(targetTime + "\n");
       
    97                     }
    97                     timesLogOut.close();
    98                     timesLogOut.close();
    98                 }
    99                 }
    99             } catch (java.io.FileNotFoundException ex) {
   100             } catch (java.io.FileNotFoundException ex) {
   100                 // We are Ignoring the errors as no need to fail the build.
   101                 // We are Ignoring the errors as no need to fail the build.
   101                 project.log("Exception has occurred", ex, Project.MSG_WARN);
   102                 project.log("Exception has occurred", ex, Project.MSG_WARN);