[jboss-svn-commits] JBL Code SVN: r13905 - in labs/jbosslabs/trunk/stats-server: sources and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Jul 31 04:45:37 EDT 2007
Author: wrzep
Date: 2007-07-31 04:45:37 -0400 (Tue, 31 Jul 2007)
New Revision: 13905
Added:
labs/jbosslabs/trunk/stats-server/sources/
labs/jbosslabs/trunk/stats-server/sources/binaries/
labs/jbosslabs/trunk/stats-server/sources/build.properties.sample
labs/jbosslabs/trunk/stats-server/sources/kosmos/
labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java
labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/org/jboss/kosmos/colors.properties
labs/jbosslabs/trunk/stats-server/sources/maven.xml
labs/jbosslabs/trunk/stats-server/sources/project.xml
Removed:
labs/jbosslabs/trunk/stats-server/binaries/
labs/jbosslabs/trunk/stats-server/build.properties.sample
labs/jbosslabs/trunk/stats-server/kosmos/
labs/jbosslabs/trunk/stats-server/maven.xml
labs/jbosslabs/trunk/stats-server/project.xml
labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java
labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/org/jboss/kosmos/colors.properties
Log:
JBLAB-875
Deleted: labs/jbosslabs/trunk/stats-server/build.properties.sample
===================================================================
--- labs/jbosslabs/trunk/stats-server/build.properties.sample 2007-07-31 08:32:21 UTC (rev 13904)
+++ labs/jbosslabs/trunk/stats-server/build.properties.sample 2007-07-31 08:45:37 UTC (rev 13905)
@@ -1,9 +0,0 @@
-# Path to stats-server directory
-stats.root.dir=
-
-# Path to JBoss AS
-local.server.dir=
-
-# Path to where Kosmos is to be deployed - you shouldn't
-# have to change that.
-local.deploy.dir=${local.server.dir}/server/default/deploy
Deleted: labs/jbosslabs/trunk/stats-server/maven.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/maven.xml 2007-07-31 08:32:21 UTC (rev 13904)
+++ labs/jbosslabs/trunk/stats-server/maven.xml 2007-07-31 08:45:37 UTC (rev 13905)
@@ -1,56 +0,0 @@
-<!--
- JBoss, the OpenSource J2EE webOS
- Distributable under LGPL license.
- See terms of license at gnu.org.
- -->
-<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util" xmlns:maven="jelly:maven">
- <!-- Default war-project goals -->
-
- <goal name="all">
- <j:set var="goal" value="all" />
- <attainGoal name="multiproject:goal" />
- </goal>
-
- <goal name="deploy">
- <j:set var="goal" value="deploy" />
- <attainGoal name="multiproject:goal" />
- </goal>
-
- <goal name="clean">
- <j:set var="goal" value="clean" />
- <attainGoal name="multiproject:goal" />
- </goal>
-
- <goal name="install">
- <echo>
-Installing JBoss AS 4.2.0.GA to the specified directory (${local.deploy.dir}).
- </echo>
- <ant:copy todir="${local.server.dir}" overwrite="true">
- <ant:fileset dir="binaries/as/to-copy"/>
- </ant:copy>
- <echo>
-JBoss AS 4.2.0.GA (without EJB3) is now installed.
-
-Now you can run the build with "maven all" and later start the server with:
-${local.server.dir}/bin/run.sh.
- </echo>
- </goal>
-
- <goal name="help">
- <echo>
-Before installing and deploying JBoss Labs Statistics Server please create and/ or modify the following files:
-(there are template .sample files):
-1. build.properties
-2. kosmos/conf/server/classes/ehcache.xml
-3. kosmos/conf/server/kosmos-services-servlet.xml (WebDAV and Quartz configuration. Important: Make sure 'webdavUrl' property is set properly.)
-
-Available goals:
-- help - print this info
-- install - install JBoss AS into a directory specified in build.properties.
-- clean - clean all modules (so far, there is only one module - kosmos)
-- deploy - deploy all modules
-- all - clean+deploy.
- </echo>
- </goal>
-
-</project>
Deleted: labs/jbosslabs/trunk/stats-server/project.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/project.xml 2007-07-31 08:32:21 UTC (rev 13904)
+++ labs/jbosslabs/trunk/stats-server/project.xml 2007-07-31 08:45:37 UTC (rev 13905)
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='ISO-8859-1'?>
-<!--
- JBoss, the OpenSource J2EE webOS
- Distributable under LGPL license.
- See terms of license at gnu.org.
- -->
-<project>
- <id>labs-stats-server</id>
- <name>JBoss Labs Statistics Server</name>
-</project>
Copied: labs/jbosslabs/trunk/stats-server/sources/binaries (from rev 13838, labs/jbosslabs/trunk/stats-server/binaries)
Copied: labs/jbosslabs/trunk/stats-server/sources/build.properties.sample (from rev 13838, labs/jbosslabs/trunk/stats-server/build.properties.sample)
===================================================================
--- labs/jbosslabs/trunk/stats-server/sources/build.properties.sample (rev 0)
+++ labs/jbosslabs/trunk/stats-server/sources/build.properties.sample 2007-07-31 08:45:37 UTC (rev 13905)
@@ -0,0 +1,9 @@
+# Path to stats-server directory
+stats.root.dir=
+
+# Path to JBoss AS
+local.server.dir=
+
+# Path to where Kosmos is to be deployed - you shouldn't
+# have to change that.
+local.deploy.dir=${local.server.dir}/server/default/deploy
Copied: labs/jbosslabs/trunk/stats-server/sources/kosmos (from rev 13838, labs/jbosslabs/trunk/stats-server/kosmos)
Deleted: labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java 2007-07-30 02:34:31 UTC (rev 13838)
+++ labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java 2007-07-31 08:45:37 UTC (rev 13905)
@@ -1,181 +0,0 @@
-/*
- * Kosmos.
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
- */
-package hu.midori.kosmos.server.util;
-
-import java.awt.Color;
-import java.awt.Rectangle;
-import java.awt.Shape;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.List;
-import java.util.Map;
-
-import org.jboss.kosmos.Colors;
-import org.jfree.chart.ChartFactory;
-import org.jfree.chart.ChartUtilities;
-import org.jfree.chart.JFreeChart;
-import org.jfree.chart.plot.PiePlot;
-import org.jfree.chart.renderer.xy.XYBarRenderer;
-import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer;
-import org.jfree.data.general.DefaultPieDataset;
-import org.jfree.data.general.PieDataset;
-import org.jfree.data.time.TimeSeries;
-import org.jfree.data.time.TimeSeriesCollection;
-
-/**
- * Utility methods for chart generation.
- *
- * @author <a href="mailto:aron.gombas at midori.hu">Aron Gombas</a>
- * @version $Id$
- */
-public class ChartUtils {
- /**
- * Max number of items in trimmed datasets.
- * @see #collectionToPieDataset(Collection, int)
- */
- public static final int MAX_ITEMS = 8;
-
- /** Transparent paint used as background in chart images. */
- protected static final Color TRANSPARENT_COLOR = new Color(0, 0, 0, 0);
- /** Shape for the timeseries-charts. */
- protected static final Shape RECTANGLE_SHAPE = new Rectangle(-1, -1, 2, 2);
-
- /** This class should never be instantiated. */
- protected ChartUtils() { }
-
- /** Returns the pie-chart generated from the passed data. */
- public static JFreeChart generatePieChart(PieDataset dataset) {
- // generate chart
- JFreeChart chart = ChartFactory.createPieChart(null, dataset, false, false, false);
- chart.setBackgroundPaint(TRANSPARENT_COLOR);
-
- // apply color-codes
- PiePlot plot = (PiePlot)chart.getPlot();
- for(int i = 0; i < dataset.getItemCount(); i++)
- plot.setSectionPaint(i, Colors.getPieColor(i));
-
- return chart;
- }
-
- /**
- * Returns the color-coded pie-chart generated from the passed data.
- * The keys in the dataset are <code>ColorCodedKey</code> objects that
- * specify both the pie section labels and the pie section colors.
- */
- public static JFreeChart generateColorCodedPieChart(PieDataset dataset) {
- // generate chart
- JFreeChart chart = ChartFactory.createPieChart(null, dataset, false, false, false);
- chart.setBackgroundPaint(TRANSPARENT_COLOR);
-
- // apply color-codes
- PiePlot plot = (PiePlot)chart.getPlot();
- for(int i = 0; i < dataset.getItemCount(); i++)
- plot.setSectionPaint(i, ((ColorCodedKey)dataset.getKey(i)).getColor());
-
- return chart;
- }
-
- /** Returns the time-chart generated from the passed data. */
- public static JFreeChart generateTimeLineChart(TimeSeries dataset) {
- // generate chart
- JFreeChart chart = ChartFactory.createTimeSeriesChart(null, null, null, new TimeSeriesCollection(dataset), false, false, false);
- chart.setBackgroundPaint(TRANSPARENT_COLOR);
-
- // override renderer
- XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer)(chart.getXYPlot().getRenderer());
- renderer.setShapesVisible(true);
- renderer.setShape(RECTANGLE_SHAPE);
-
- return chart;
- }
-
- /** Returns the time-barchart generated from the passed data. */
- public static JFreeChart generateTimeBarChart(TimeSeries dataset) {
- // generate chart
- JFreeChart chart = generateTimeLineChart(dataset);
-
- // override renderer with bar type
- XYBarRenderer renderer = new XYBarRenderer(0.2);
- renderer.setDrawBarOutline(false);
- chart.getXYPlot().setRenderer(renderer);
-
- return chart;
- }
-
- /** Writes the given chart to the output-stream in PNG image format. */
- public static void writeChartAsPng(JFreeChart chart, OutputStream out, int width, int height) throws IOException {
- ChartUtilities.writeChartAsPNG(out, chart, width, height, true, 0);
- }
-
- /**
- * Returns the passed collection as untrimmed pie-dataset.
- * @see #collectionToPieDataset(Collection, int)
- */
- public static PieDataset collectionToPieDataset(Collection items) {
- return collectionToPieDataset(items, -1);
- }
-
- /**
- * Returns the passed collection of <code>Map.Entry</code> objects as pie-dataset
- * (equivalent key-value pairs), optionally trimmed to a maximum number of items
- * to prevent unreadably busy charts.
- * @param maxItems the maximum number of items in the returned pie-dataset or -1 if trimming is not needed.
- */
- @SuppressWarnings("unchecked")
- public static PieDataset collectionToPieDataset(Collection items, int maxItems) {
- DefaultPieDataset dataset = new DefaultPieDataset();
-
- // generate dataset
- int counter = 0;
- for(Map.Entry<? extends Comparable, Integer> item : (Collection<Map.Entry<? extends Comparable, Integer>>)items) {
- if((maxItems != -1) && (++counter > maxItems))
- break;
- dataset.setValue(item.getKey(), item.getValue());
- }
-
- return dataset;
- }
-
- /**
- * Increments the counter (or starts that from 1 if not existing yet) in
- * a <code>String</code> to <code>Integer</code> map.
- */
- public static void incrementCountMap(Map<String, Integer> map, String key) {
- if(key == null)
- return;
-
- Integer count = map.get(key);
- map.put(key, (count == null) ? 1 : count + 1);
- }
-
- /** Returns the list of the entries in the map sorted by their value (not by their key!) in descending order. */
- @SuppressWarnings("unchecked")
- public static List countMapToSortedList(Map map) {// TODO should be Map<?, Integer> and List<Map.Entry<?, Integer>>
- List<Map.Entry> sorted = new ArrayList<Map.Entry>(map.entrySet());
- Collections.sort(sorted, new Comparator() {// TODO should be Comparator<Map.Entry<?, Integer>>
- public int compare(Object obj1, Object obj2) {
- // revert-compare for descending order
- Integer value1 = (Integer)((Map.Entry)obj1).getValue();
- Integer value2 = (Integer)((Map.Entry)obj2).getValue();
- int comparison = value2.compareTo(value1);
- if(comparison != 0)
- return comparison;
-
- // compare keys in ascending order for identical-valued entries
- String key1 = (String)((Map.Entry)obj1).getKey();
- String key2 = (String)((Map.Entry)obj2).getKey();
- return key1.compareTo(key2);
- }
- });
-
- return sorted;
- }
-}
Copied: labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java (from rev 13840, labs/jbosslabs/trunk/stats-server/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java)
===================================================================
--- labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java (rev 0)
+++ labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java 2007-07-31 08:45:37 UTC (rev 13905)
@@ -0,0 +1,188 @@
+/*
+ * Kosmos.
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package hu.midori.kosmos.server.util;
+
+import java.awt.Color;
+import java.awt.Rectangle;
+import java.awt.Shape;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Map;
+
+import org.jboss.kosmos.Colors;
+import org.jfree.chart.ChartFactory;
+import org.jfree.chart.ChartUtilities;
+import org.jfree.chart.JFreeChart;
+import org.jfree.chart.plot.PiePlot;
+import org.jfree.chart.renderer.xy.XYBarRenderer;
+import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer;
+import org.jfree.data.general.DefaultPieDataset;
+import org.jfree.data.general.PieDataset;
+import org.jfree.data.time.TimeSeries;
+import org.jfree.data.time.TimeSeriesCollection;
+
+/**
+ * Utility methods for chart generation.
+ *
+ * @author <a href="mailto:aron.gombas at midori.hu">Aron Gombas</a>
+ * @author Pawel Wrzeszcz (pwrzeszcz [at] jboss . org)
+ * @version $Id$
+ */
+public class ChartUtils {
+ /**
+ * Max number of items in trimmed datasets.
+ * @see #collectionToPieDataset(Collection, int)
+ */
+ public static final int MAX_ITEMS = 8;
+
+ /** Transparent paint used as background in chart images. */
+ protected static final Color TRANSPARENT_COLOR = new Color(0, 0, 0, 0);
+ /** Shape for the timeseries-charts. */
+ protected static final Shape RECTANGLE_SHAPE = new Rectangle(-1, -1, 2, 2);
+ /** Label background color */
+ protected static final Color LABEL_BACKGROUND_COLOR = Color.decode("#f8f4db");
+
+ /** This class should never be instantiated. */
+ protected ChartUtils() { }
+
+ /** Returns the pie-chart generated from the passed data. */
+ public static JFreeChart generatePieChart(PieDataset dataset) {
+ // generate chart
+ JFreeChart chart = ChartFactory.createPieChart(null, dataset, false, false, false);
+ chart.setBackgroundPaint(TRANSPARENT_COLOR);
+
+ // apply color-codes
+ PiePlot plot = (PiePlot)chart.getPlot();
+ for(int i = 0; i < dataset.getItemCount(); i++) {
+ plot.setSectionPaint(i, Colors.getPieColor(i));
+ plot.setLabelBackgroundPaint(LABEL_BACKGROUND_COLOR);
+ }
+
+ return chart;
+ }
+
+ /**
+ * Returns the color-coded pie-chart generated from the passed data.
+ * The keys in the dataset are <code>ColorCodedKey</code> objects that
+ * specify both the pie section labels and the pie section colors.
+ */
+ public static JFreeChart generateColorCodedPieChart(PieDataset dataset) {
+ // generate chart
+ JFreeChart chart = ChartFactory.createPieChart(null, dataset, false, false, false);
+ chart.setBackgroundPaint(TRANSPARENT_COLOR);
+
+ // apply color-codes
+ PiePlot plot = (PiePlot)chart.getPlot();
+ for(int i = 0; i < dataset.getItemCount(); i++) {
+ plot.setSectionPaint(i, ((ColorCodedKey)dataset.getKey(i)).getColor());
+ plot.setLabelBackgroundPaint(LABEL_BACKGROUND_COLOR);
+ }
+
+ return chart;
+ }
+
+ /** Returns the time-chart generated from the passed data. */
+ public static JFreeChart generateTimeLineChart(TimeSeries dataset) {
+ // generate chart
+ JFreeChart chart = ChartFactory.createTimeSeriesChart(null, null, null, new TimeSeriesCollection(dataset), false, false, false);
+ chart.setBackgroundPaint(TRANSPARENT_COLOR);
+
+ // override renderer
+ XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer)(chart.getXYPlot().getRenderer());
+ renderer.setShapesVisible(true);
+ renderer.setShape(RECTANGLE_SHAPE);
+
+ return chart;
+ }
+
+ /** Returns the time-barchart generated from the passed data. */
+ public static JFreeChart generateTimeBarChart(TimeSeries dataset) {
+ // generate chart
+ JFreeChart chart = generateTimeLineChart(dataset);
+
+ // override renderer with bar type
+ XYBarRenderer renderer = new XYBarRenderer(0.2);
+ renderer.setDrawBarOutline(false);
+ chart.getXYPlot().setRenderer(renderer);
+
+ return chart;
+ }
+
+ /** Writes the given chart to the output-stream in PNG image format. */
+ public static void writeChartAsPng(JFreeChart chart, OutputStream out, int width, int height) throws IOException {
+ ChartUtilities.writeChartAsPNG(out, chart, width, height, true, 0);
+ }
+
+ /**
+ * Returns the passed collection as untrimmed pie-dataset.
+ * @see #collectionToPieDataset(Collection, int)
+ */
+ public static PieDataset collectionToPieDataset(Collection items) {
+ return collectionToPieDataset(items, -1);
+ }
+
+ /**
+ * Returns the passed collection of <code>Map.Entry</code> objects as pie-dataset
+ * (equivalent key-value pairs), optionally trimmed to a maximum number of items
+ * to prevent unreadably busy charts.
+ * @param maxItems the maximum number of items in the returned pie-dataset or -1 if trimming is not needed.
+ */
+ @SuppressWarnings("unchecked")
+ public static PieDataset collectionToPieDataset(Collection items, int maxItems) {
+ DefaultPieDataset dataset = new DefaultPieDataset();
+
+ // generate dataset
+ int counter = 0;
+ for(Map.Entry<? extends Comparable, Integer> item : (Collection<Map.Entry<? extends Comparable, Integer>>)items) {
+ if((maxItems != -1) && (++counter > maxItems))
+ break;
+ dataset.setValue(item.getKey(), item.getValue());
+ }
+
+ return dataset;
+ }
+
+ /**
+ * Increments the counter (or starts that from 1 if not existing yet) in
+ * a <code>String</code> to <code>Integer</code> map.
+ */
+ public static void incrementCountMap(Map<String, Integer> map, String key) {
+ if(key == null)
+ return;
+
+ Integer count = map.get(key);
+ map.put(key, (count == null) ? 1 : count + 1);
+ }
+
+ /** Returns the list of the entries in the map sorted by their value (not by their key!) in descending order. */
+ @SuppressWarnings("unchecked")
+ public static List countMapToSortedList(Map map) {// TODO should be Map<?, Integer> and List<Map.Entry<?, Integer>>
+ List<Map.Entry> sorted = new ArrayList<Map.Entry>(map.entrySet());
+ Collections.sort(sorted, new Comparator() {// TODO should be Comparator<Map.Entry<?, Integer>>
+ public int compare(Object obj1, Object obj2) {
+ // revert-compare for descending order
+ Integer value1 = (Integer)((Map.Entry)obj1).getValue();
+ Integer value2 = (Integer)((Map.Entry)obj2).getValue();
+ int comparison = value2.compareTo(value1);
+ if(comparison != 0)
+ return comparison;
+
+ // compare keys in ascending order for identical-valued entries
+ String key1 = (String)((Map.Entry)obj1).getKey();
+ String key2 = (String)((Map.Entry)obj2).getKey();
+ return key1.compareTo(key2);
+ }
+ });
+
+ return sorted;
+ }
+}
Deleted: labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/org/jboss/kosmos/colors.properties
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/src/java/org/jboss/kosmos/colors.properties 2007-07-30 02:34:31 UTC (rev 13838)
+++ labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/org/jboss/kosmos/colors.properties 2007-07-31 08:45:37 UTC (rev 13905)
@@ -1,24 +0,0 @@
-# $Id$
-
-jiraproject.openIssues.color=0xFF0000
-jiraproject.codingInProgressIssues.color=0xFFFF00
-jiraproject.reopenedIssues.color=0xDD0000
-jiraproject.resolvedIssues.color=0x00FF00
-jiraproject.closedIssues.color=0xDDDDDD
-
-jiraproject.blockerOpenIssues.color=0xFF0000
-jiraproject.criticalOpenIssues.color=0xEE0000
-jiraproject.majorOpenIssues.color=0xDD0000
-jiraproject.minorOpenIssues.color=0xFFFF00
-jiraproject.optionalOpenIssues.color=0xEEEE00
-jiraproject.trivialOpenIssues.color=0xDDDDDD
-
-pie.chart.color.0=0xF0F0F0
-pie.chart.color.1=0xFFFF00
-pie.chart.color.2=0xFF0000
-pie.chart.color.3=0x00FF00
-pie.chart.color.4=0x0000FF
-pie.chart.color.5=0xFFFFFF
-pie.chart.color.6=0xFF0000
-pie.chart.color.7=0x00FF00
-pie.chart.color.8=0x0000FF
Copied: labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/org/jboss/kosmos/colors.properties (from rev 13839, labs/jbosslabs/trunk/stats-server/kosmos/src/java/org/jboss/kosmos/colors.properties)
===================================================================
--- labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/org/jboss/kosmos/colors.properties (rev 0)
+++ labs/jbosslabs/trunk/stats-server/sources/kosmos/src/java/org/jboss/kosmos/colors.properties 2007-07-31 08:45:37 UTC (rev 13905)
@@ -0,0 +1,30 @@
+jiraproject.openIssues.color=#a22903
+jiraproject.codingInProgressIssues.color=#e3a835
+jiraproject.reopenedIssues.color=#233345
+jiraproject.resolvedIssues.color=#94aebd
+jiraproject.closedIssues.color=#FFFFFF
+
+jiraproject.blockerOpenIssues.color=#a22903
+jiraproject.criticalOpenIssues.color=#e3a835
+jiraproject.majorOpenIssues.color=#996b13
+jiraproject.minorOpenIssues.color=#4a5d75
+jiraproject.optionalOpenIssues.color=#e1eef4
+jiraproject.trivialOpenIssues.color=#FFFFFF
+
+pie.chart.color.0=#a22903
+pie.chart.color.1=#e3a835
+pie.chart.color.2=#996b13
+pie.chart.color.3=#233345
+pie.chart.color.4=#4a5d75
+pie.chart.color.5=#94aebd
+pie.chart.color.6=#e1eef4
+pie.chart.color.7=#FFFFFF
+
+# White: #FFFFFF
+# Light Blue: #e1eef4
+# Medium Blue: #94aebd
+# Dark Blue: #4a5d75
+# Extra Dark Blue: #233345
+# Mustard: #996b13
+# Orange: #e3a835
+# Red: #a22903
Copied: labs/jbosslabs/trunk/stats-server/sources/maven.xml (from rev 13838, labs/jbosslabs/trunk/stats-server/maven.xml)
===================================================================
--- labs/jbosslabs/trunk/stats-server/sources/maven.xml (rev 0)
+++ labs/jbosslabs/trunk/stats-server/sources/maven.xml 2007-07-31 08:45:37 UTC (rev 13905)
@@ -0,0 +1,56 @@
+<!--
+ JBoss, the OpenSource J2EE webOS
+ Distributable under LGPL license.
+ See terms of license at gnu.org.
+ -->
+<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util" xmlns:maven="jelly:maven">
+ <!-- Default war-project goals -->
+
+ <goal name="all">
+ <j:set var="goal" value="all" />
+ <attainGoal name="multiproject:goal" />
+ </goal>
+
+ <goal name="deploy">
+ <j:set var="goal" value="deploy" />
+ <attainGoal name="multiproject:goal" />
+ </goal>
+
+ <goal name="clean">
+ <j:set var="goal" value="clean" />
+ <attainGoal name="multiproject:goal" />
+ </goal>
+
+ <goal name="install">
+ <echo>
+Installing JBoss AS 4.2.0.GA to the specified directory (${local.deploy.dir}).
+ </echo>
+ <ant:copy todir="${local.server.dir}" overwrite="true">
+ <ant:fileset dir="binaries/as/to-copy"/>
+ </ant:copy>
+ <echo>
+JBoss AS 4.2.0.GA (without EJB3) is now installed.
+
+Now you can run the build with "maven all" and later start the server with:
+${local.server.dir}/bin/run.sh.
+ </echo>
+ </goal>
+
+ <goal name="help">
+ <echo>
+Before installing and deploying JBoss Labs Statistics Server please create and/ or modify the following files:
+(there are template .sample files):
+1. build.properties
+2. kosmos/conf/server/classes/ehcache.xml
+3. kosmos/conf/server/kosmos-services-servlet.xml (WebDAV and Quartz configuration. Important: Make sure 'webdavUrl' property is set properly.)
+
+Available goals:
+- help - print this info
+- install - install JBoss AS into a directory specified in build.properties.
+- clean - clean all modules (so far, there is only one module - kosmos)
+- deploy - deploy all modules
+- all - clean+deploy.
+ </echo>
+ </goal>
+
+</project>
Copied: labs/jbosslabs/trunk/stats-server/sources/project.xml (from rev 13838, labs/jbosslabs/trunk/stats-server/project.xml)
===================================================================
--- labs/jbosslabs/trunk/stats-server/sources/project.xml (rev 0)
+++ labs/jbosslabs/trunk/stats-server/sources/project.xml 2007-07-31 08:45:37 UTC (rev 13905)
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!--
+ JBoss, the OpenSource J2EE webOS
+ Distributable under LGPL license.
+ See terms of license at gnu.org.
+ -->
+<project>
+ <id>labs-stats-server</id>
+ <name>JBoss Labs Statistics Server</name>
+</project>
More information about the jboss-svn-commits
mailing list