Changeset 1715


Ignore:
Timestamp:
09/02/14 16:06:10 (10 years ago)
Author:
dmay
Message:

include the current date in the replay file instead of a dummy one (because why not)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/commands/CMDgenerateJacaretoReplay.java

    r1714 r1715  
    2121import java.io.OutputStreamWriter; 
    2222import java.util.ArrayList; 
     23import java.util.Calendar; 
    2324import java.util.Collection; 
    2425import java.util.HashMap; 
     
    183184                                   String classpathext) throws IOException 
    184185    { 
     186        Calendar now = Calendar.getInstance(); 
     187 
    185188        writeLine(writer, "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"); 
    186189        writeLine(writer, "<JacaretoStructure>"); 
    187190        writeLine(writer, "<Record>"); 
    188191 
    189         // TODO: This header content is basically copy+paste from a 
    190         // specific jacareto replay file right now. 
    191         writeLine(writer, 
    192                   "<Calendar procTime=\"0\" duration=\"0\" year=\"2000\" month=\"1\" date=\"11\" hour=\"1\" min=\"1\" sec=\"1\" uuid=\"06831ba1-f28a-4e05-b46e-ce9d8f9ffa0f\" />"); 
     192        //@formatter:off 
     193        writeLine(writer, "<Calendar procTime=\"0\" " 
     194            + "duration=\"0\" " 
     195            + "year=\"" + now.get(Calendar.YEAR) + "\" " 
     196            + "month=\"" + now.get(Calendar.MONTH) + "\" " 
     197            + "date=\"" + now.get(Calendar.DAY_OF_MONTH) + "\" " 
     198            + "hour=\"" + now.get(Calendar.HOUR_OF_DAY) + "\" " 
     199            + "min=\"" + now.get(Calendar.MINUTE) + "\" " 
     200            + "sec=\"" + now.get(Calendar.SECOND) + "\" " 
     201            + "uuid=\"" + UUID.randomUUID() + "\" />" 
     202        ); 
    193203        writeLine(writer, 
    194204                  "<SystemInfo procTime=\"0\" duration=\"0\" screenWidth=\"2646\" screenHeight=\"1024\" javaVersion=\"1.7.0_65\" lookAndFeel=\"javax.swing.plaf.metal.MetalLookAndFeel\" uuid=\"720f430f-52cf-4d8b-9fbe-58434f766efe\" />"); 
     
    196206                  "<KeyboardState procTime=\"0\" duration=\"0\" isNumLockOn=\"false\" isScrollLockOn=\"false\" isCapsLockOn=\"false\" applyIsNumLockOn=\"true\" applyIsScrollLockOn=\"true\" applyIsCapsLockOn=\"true\" uuid=\"28146f79-9fc7-49f9-b4a8-5866a7625683\" />"); 
    197207        writeLine(writer, "<ComponentMode numberPopupMenues=\"true\" />"); 
    198         //@formatter:off 
    199208        writeLine(writer, "<ApplicationStarter " 
    200209            + "procTime=\"0\" " 
     
    208217            + "captureparams=\"\" " 
    209218            + "replayparams=\"\" " 
    210             + "uuid=\"a7b7d7b9-caa9-4d6d-b052-cf74d353275e\" />" 
     219            + "uuid=\"" + UUID.randomUUID() + "\" />" 
    211220        ); 
    212221        //@formatter:on 
Note: See TracChangeset for help on using the changeset viewer.