Author: manik.surtani(a)jboss.com
Date: 2008-01-30 20:28:40 -0500 (Wed, 30 Jan 2008)
New Revision: 5271
Modified:
benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java
Log:
User friendly error msgs
Modified:
benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java
===================================================================
---
benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java 2008-01-31
01:24:21 UTC (rev 5270)
+++
benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java 2008-01-31
01:28:40 UTC (rev 5271)
@@ -33,7 +33,7 @@
public class ChartGenerator
{
static String reportDirectory;
- static boolean singleChart;
+ static boolean singleChart = true;
DefaultCategoryDataset dataset;
@@ -65,6 +65,12 @@
return;
}
+ if (reportDirectory == null)
+ {
+ help();
+ return;
+ }
+ if (!singleChart) throw new RuntimeException("Multiple charts not yet
implemented");
new ChartGenerator().generateChart();
}