[jboss-svn-commits] JBL Code SVN: r8366 - in labs/reportingservices/trunk/dev/modules: client/impl client/impl/src/main/java/org/jboss/reporting/client client/samples/src/main/java/org/jboss/reporting/client server/engine/jfreereport server/impl

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Dec 16 09:03:03 EST 2006


Author: noel.rocher at jboss.com
Date: 2006-12-16 09:02:53 -0500 (Sat, 16 Dec 2006)
New Revision: 8366

Modified:
   labs/reportingservices/trunk/dev/modules/client/impl/pom.xml
   labs/reportingservices/trunk/dev/modules/client/impl/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java
   labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java
   labs/reportingservices/trunk/dev/modules/server/engine/jfreereport/pom.xml
   labs/reportingservices/trunk/dev/modules/server/impl/pom.xml
Log:


Modified: labs/reportingservices/trunk/dev/modules/client/impl/pom.xml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/impl/pom.xml	2006-12-16 14:02:35 UTC (rev 8365)
+++ labs/reportingservices/trunk/dev/modules/client/impl/pom.xml	2006-12-16 14:02:53 UTC (rev 8366)
@@ -8,7 +8,7 @@
 
 
 	<modelVersion>4.0.0</modelVersion>
-	<artifactId>reporting-services-client-impl</artifactId>
+	<artifactId>client-impl</artifactId>
 	<name>Client - Implementation</name>
 	<packaging>jar</packaging>
 
@@ -19,10 +19,6 @@
 			<groupId>jboss.reportingservices</groupId>
 			<artifactId>client-api</artifactId>
 		</dependency>
-		<dependency>
-			<groupId>jboss.reportingservices</groupId>
-			<artifactId>client-impl</artifactId>
-		</dependency>
 
 		<!-- external dependencies -->
 		<dependency>

Modified: labs/reportingservices/trunk/dev/modules/client/impl/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/impl/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java	2006-12-16 14:02:35 UTC (rev 8365)
+++ labs/reportingservices/trunk/dev/modules/client/impl/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java	2006-12-16 14:02:53 UTC (rev 8366)
@@ -1,72 +1,72 @@
-/*
- * JBoss, Home of Professional Open Source
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
- */
-package org.jboss.reporting.client;
-
-import java.io.BufferedOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-
-import org.jboss.reporting.api.Report;
-import org.jboss.reporting.api.ReportTask;
-import org.jboss.reporting.api.distribute.DistributeByMail;
-import org.jboss.reporting.api.impl.ReportTaskFactory;
-
-/**
- * A simple example that is copying the report result into a directory. The report is
- * executed every N minutes.
- * Default are used for PDF output.
- * 
- * @author noel
- */
-public class CopyPDFToDirEveryNmin
-{
-
-    /**
-     * arg[0] = report name to launch (the name used by reporting-services. For ex: reports/MyReport) 
-     * arg[1] = directory name where results are to be copied 
-     * arg[2] = number of minute for the periode 
-     * @param args
-     */
-    public static void main(String[] args)
-    {
-	if (args.length != 3)
-	{
-	    System.out.println("usage : java CopyPDFToDirEveryNmin arg0 arg1 arg2 \n" +
-		    "\twith:\n" +
-		    "\targ0 = report name to launch (the name used by reporting-services. For ex: reports/MyReport)\n" + 
-		    "\targ1 = directory name where results are to be copied\n" + 
-		    "\targ2 = number of minute for the periode" );
-	}
-	else
-	{
-	    process(args[0], args[1], args[2]);
-	}
-
-    }
-
-
-
-    public static void process(String in_reportName, String in_directoryName, int in_numberOfMinute)
-    {
-	try
-	{
-	    ReportTask rt = ReportTaskFactory.getInstance();
-	    Report r = new Report(in_reportName);
-	    rt.setReport( r );
-	    rt.setDistribute(new DistributeByFileCopy(in_directoryName));
-	    rt.setSchedule(new SchedulePeriodic(Calendar.getInstance(),in_numberOfMinute, SchedulePeriodic.PERIODE_UNIT_MINUTE));
-
-	    rt.submit();
-
-	} catch (Exception e)
-	{
-	    // TODO Auto-generated catch block
-	    e.printStackTrace();
-	}
-    }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.reporting.client;
+
+import java.util.Calendar;
+
+import org.jboss.reporting.api.Report;
+import org.jboss.reporting.api.ReportTask;
+import org.jboss.reporting.api.distribute.DistributeByFileCopy;
+import org.jboss.reporting.api.impl.ReportTaskFactory;
+import org.jboss.reporting.api.schedule.SchedulePeriodic;
+
+/**
+ * A simple example that is copying the report result into a directory. The report is
+ * executed every N minutes.
+ * Default are used for PDF output.
+ * 
+ * @author noel
+ */
+public class CopyPDFToDirEveryNmin
+{
+
+    /**
+     * arg[0] = report name to launch (the name used by reporting-services. For ex: reports/MyReport) 
+     * arg[1] = directory name where results are to be copied 
+     * arg[2] = number of minute for the periode 
+     * @param args
+     */
+    public static void main(String[] args)
+    {
+	if (args.length != 3)
+	{
+	    System.out.println("usage : java CopyPDFToDirEveryNmin arg0 arg1 arg2 \n" +
+		    "\twith:\n" +
+		    "\targ0 = report name to launch (the name used by reporting-services. For ex: reports/MyReport)\n" + 
+		    "\targ1 = directory name where results are to be copied\n" + 
+		    "\targ2 = number of minute for the periode" );
+	}
+	else
+	{
+		Integer in_numberOfMinute = new Integer(args[2]);
+	    process(args[0], args[1], in_numberOfMinute.intValue());
+	}
+
+    }
+
+
+
+    public static void process(String in_reportName, String in_directoryName, int in_numberOfMinute)
+    {
+	try
+	{
+	    ReportTask rt = ReportTaskFactory.getInstance();
+	    Report r = new Report(in_reportName);
+	    rt.setReport( r );
+	    rt.setDistribute(new DistributeByFileCopy(in_directoryName));
+	    rt.setSchedule(new SchedulePeriodic(Calendar.getInstance(),in_numberOfMinute, SchedulePeriodic.PERIODE_UNIT_MINUTE));
+
+	    rt.submit();
+
+	} catch (Exception e)
+	{
+	    // TODO Auto-generated catch block
+	    e.printStackTrace();
+	}
+    }
+
+}

Modified: labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java	2006-12-16 14:02:35 UTC (rev 8365)
+++ labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java	2006-12-16 14:02:53 UTC (rev 8366)
@@ -1,72 +1,72 @@
-/*
- * JBoss, Home of Professional Open Source
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
- */
-package org.jboss.reporting.client;
-
-import java.io.BufferedOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-
-import org.jboss.reporting.api.Report;
-import org.jboss.reporting.api.ReportTask;
-import org.jboss.reporting.api.distribute.DistributeByMail;
-import org.jboss.reporting.api.impl.ReportTaskFactory;
-
-/**
- * A simple example that is copying the report result into a directory. The report is
- * executed every N minutes.
- * Default are used for PDF output.
- * 
- * @author noel
- */
-public class CopyPDFToDirEveryNmin
-{
-
-    /**
-     * arg[0] = report name to launch (the name used by reporting-services. For ex: reports/MyReport) 
-     * arg[1] = directory name where results are to be copied 
-     * arg[2] = number of minute for the periode 
-     * @param args
-     */
-    public static void main(String[] args)
-    {
-	if (args.length != 3)
-	{
-	    System.out.println("usage : java CopyPDFToDirEveryNmin arg0 arg1 arg2 \n" +
-		    "\twith:\n" +
-		    "\targ0 = report name to launch (the name used by reporting-services. For ex: reports/MyReport)\n" + 
-		    "\targ1 = directory name where results are to be copied\n" + 
-		    "\targ2 = number of minute for the periode" );
-	}
-	else
-	{
-	    process(args[0], args[1], args[2]);
-	}
-
-    }
-
-
-
-    public static void process(String in_reportName, String in_directoryName, int in_numberOfMinute)
-    {
-	try
-	{
-	    ReportTask rt = ReportTaskFactory.getInstance();
-	    Report r = new Report(in_reportName);
-	    rt.setReport( r );
-	    rt.setDistribute(new DistributeByFileCopy(in_directoryName));
-	    rt.setSchedule(new SchedulePeriodic(Calendar.getInstance(),in_numberOfMinute, SchedulePeriodic.PERIODE_UNIT_MINUTE));
-
-	    rt.submit();
-
-	} catch (Exception e)
-	{
-	    // TODO Auto-generated catch block
-	    e.printStackTrace();
-	}
-    }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.reporting.client;
+
+import java.util.Calendar;
+
+import org.jboss.reporting.api.Report;
+import org.jboss.reporting.api.ReportTask;
+import org.jboss.reporting.api.distribute.DistributeByFileCopy;
+import org.jboss.reporting.api.impl.ReportTaskFactory;
+import org.jboss.reporting.api.schedule.SchedulePeriodic;
+
+/**
+ * A simple example that is copying the report result into a directory. The report is
+ * executed every N minutes.
+ * Default are used for PDF output.
+ * 
+ * @author noel
+ */
+public class CopyPDFToDirEveryNmin
+{
+
+    /**
+     * arg[0] = report name to launch (the name used by reporting-services. For ex: reports/MyReport) 
+     * arg[1] = directory name where results are to be copied 
+     * arg[2] = number of minute for the periode 
+     * @param args
+     */
+    public static void main(String[] args)
+    {
+	if (args.length != 3)
+	{
+	    System.out.println("usage : java CopyPDFToDirEveryNmin arg0 arg1 arg2 \n" +
+		    "\twith:\n" +
+		    "\targ0 = report name to launch (the name used by reporting-services. For ex: reports/MyReport)\n" + 
+		    "\targ1 = directory name where results are to be copied\n" + 
+		    "\targ2 = number of minute for the periode" );
+	}
+	else
+	{
+		Integer in_numberOfMinute = new Integer(args[2]);
+	    process(args[0], args[1], in_numberOfMinute.intValue());
+	}
+
+    }
+
+
+
+    public static void process(String in_reportName, String in_directoryName, int in_numberOfMinute)
+    {
+	try
+	{
+	    ReportTask rt = ReportTaskFactory.getInstance();
+	    Report r = new Report(in_reportName);
+	    rt.setReport( r );
+	    rt.setDistribute(new DistributeByFileCopy(in_directoryName));
+	    rt.setSchedule(new SchedulePeriodic(Calendar.getInstance(),in_numberOfMinute, SchedulePeriodic.PERIODE_UNIT_MINUTE));
+
+	    rt.submit();
+
+	} catch (Exception e)
+	{
+	    // TODO Auto-generated catch block
+	    e.printStackTrace();
+	}
+    }
+
+}

Modified: labs/reportingservices/trunk/dev/modules/server/engine/jfreereport/pom.xml
===================================================================
--- labs/reportingservices/trunk/dev/modules/server/engine/jfreereport/pom.xml	2006-12-16 14:02:35 UTC (rev 8365)
+++ labs/reportingservices/trunk/dev/modules/server/engine/jfreereport/pom.xml	2006-12-16 14:02:53 UTC (rev 8366)
@@ -59,13 +59,13 @@
 
 		<!-- freereport -->
 		<dependency>
-			<groupId>jfree</groupId>
+			<groupId>org.jfree.report</groupId>
 			<artifactId>jfreereport</artifactId>
 		</dependency>
 		<dependency>
-			<groupId>commons-javaflow</groupId>
-			<artifactId>commons-javaflow</artifactId>
-			<version>1.0-beta1</version>
+			<groupId>org.apache.commons</groupId>
+			<artifactId>javaflow</artifactId>
+			<version>1.0-dev-20061213-r486828</version>
 		</dependency>
 
 	</dependencies>

Modified: labs/reportingservices/trunk/dev/modules/server/impl/pom.xml
===================================================================
--- labs/reportingservices/trunk/dev/modules/server/impl/pom.xml	2006-12-16 14:02:35 UTC (rev 8365)
+++ labs/reportingservices/trunk/dev/modules/server/impl/pom.xml	2006-12-16 14:02:53 UTC (rev 8366)
@@ -67,13 +67,13 @@
 
 		<!-- freereport -->
 		<dependency>
-			<groupId>jfree</groupId>
+			<groupId>org.jfree.report</groupId>
 			<artifactId>jfreereport</artifactId>
 		</dependency>
 		<dependency>
-			<groupId>commons-javaflow</groupId>
-			<artifactId>commons-javaflow</artifactId>
-			<version>1.0-beta1</version>
+			<groupId>org.apache.commons</groupId>
+			<artifactId>javaflow</artifactId>
+			<version>1.0-dev-20061213-r486828</version>
 		</dependency>
 
 		<!-- jasperreports -->




More information about the jboss-svn-commits mailing list