[jboss-cvs] jrunit/src/main/org/jboss/jrunit/controller/reporters ...

Ron Sigal ron_sigal at yahoo.com
Wed Apr 30 23:04:57 EDT 2008


  User: rsigal  
  Date: 08/04/30 23:04:57

  Modified:    src/main/org/jboss/jrunit/controller/reporters 
                        FileBenchmarkReporter.java
  Log:
  JBREM-238: Added use of jrunit.logdir system property.
  
  Revision  Changes    Path
  1.4       +12 -1     jrunit/src/main/org/jboss/jrunit/controller/reporters/FileBenchmarkReporter.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FileBenchmarkReporter.java
  ===================================================================
  RCS file: /cvsroot/jboss/jrunit/src/main/org/jboss/jrunit/controller/reporters/FileBenchmarkReporter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- FileBenchmarkReporter.java	29 Jul 2005 22:20:24 -0000	1.3
  +++ FileBenchmarkReporter.java	1 May 2008 03:04:57 -0000	1.4
  @@ -37,7 +37,18 @@
   
         try
         {
  -         File reportFile = new File(directory,benchmark.getName() + "_benchmark.txt");
  +         File reportFile = null;
  +         
  +         if (directory != null)
  +         {
  +            reportFile = new File(directory,benchmark.getName() + "_benchmark.txt");
  +         }
  +         else
  +         {
  +            String logDirectory = System.getProperty("jrunit.logdir", ".");
  +            reportFile = new File(logDirectory + File.separator + benchmark.getName() + "_benchmark.txt");
  +         }
  +         
            if(!reportFile.exists())
            {
               reportFile.createNewFile();
  
  
  



More information about the jboss-cvs-commits mailing list