Author: liuzhe Date: Mon Sep 17 14:18:28 2012 New Revision: 1386623 URL: http://svn.apache.org/viewvc?rev=1386623&view=rev Log: #120987 - Enable test automation framework to group test cases. Part 1
Modified: incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/OpenOffice.java Modified: incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/OpenOffice.java URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/OpenOffice.java?rev=1386623&r1=1386622&r2=1386623&view=diff ============================================================================== --- incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/OpenOffice.java (original) +++ incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/OpenOffice.java Mon Sep 17 14:18:28 2012 @@ -24,7 +24,9 @@ package org.openoffice.test; import java.io.File; import java.net.MalformedURLException; import java.net.URL; +import java.text.SimpleDateFormat; import java.util.ArrayList; +import java.util.Date; import java.util.Map.Entry; import java.util.Properties; import java.util.Set; @@ -133,6 +135,9 @@ public class OpenOffice { for (Entry<Object, Object> e : entries) { System.setProperty("info.app." + e.getKey(), (String)e.getValue()); } + // + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); + System.setProperty("info.app.date", dateFormat.format(new Date(versionFile.lastModified()))); addArgs(id); }