Permalink
Browse files

Initial check in.

  • Loading branch information...
0 parents commit 24bf838f64df09ca0063032395d50793790e6eeb @arunpjohny committed Jan 3, 2012
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/com.ibm.icu_4.4.2.v20110208.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/com.lowagie.text_2.1.7.v201004222200.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/commons-cli-1.0.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/derby.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/flute.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/javax.wsdl_1.5.1.v201012040544.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/js.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.bridge_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.css_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.dom_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.dom.svg_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.ext.awt_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.parser_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.pdf_1.6.0.v201105071520.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.svggen_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.transcoder_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.util_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.util.gui_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.batik.xml_1.6.0.v201011041432.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.commons.codec_1.3.0.v201101211617.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.xerces_2.9.0.v201101211617.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.xml.resolver_1.2.0.v201005080400.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.apache.xml.serializer_2.7.1.v201005080400.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.core.expressions_3.4.300.v20110228.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.core.filesystem_1.3.100.v20110423-0524.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.core.jobs_3.5.100.v20110404.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.core.resources_3.7.100.v20110510-0712.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.core.runtime_3.7.0.v20110110.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity_1.2.3.v201108101135.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.apache.derby_1.0.102.v201107130538.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.apache.derby.dbdefinition_1.0.2.v200906161815.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.console.profile_1.0.0.v200906020553.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.db.generic_1.0.1.v200908130547.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.dbdefinition.genericJDBC_1.0.1.v200906161815.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.oda_3.3.2.v201105200920.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.oda.consumer_3.2.4.v201105200848.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.oda.design_3.3.3.v201105191315.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.oda.flatfile_3.1.1.v201108260633.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.oda.profile_3.2.6.v201108060848.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.connectivity.sqm.core_1.2.3.v201109022323.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.hsqldb_1.0.0.v200906020900.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.hsqldb.dbdefinition_1.0.0.v200906161800.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.ibm.db2.luw_1.0.2.v201005211230.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.ibm.db2.luw.dbdefinition_1.0.4.v201005211215.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.ibm.informix_1.0.1.v201005211230.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.ibm.informix.dbdefinition_1.0.4.v201005211230.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.msft.sqlserver_1.0.1.v201001180222.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.msft.sqlserver.dbdefinition_1.0.0.v201004211630.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.mysql_1.0.2.v201109022323.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.mysql.dbdefinition_1.0.4.v200906161800.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.oda.ws_1.2.2.v201106161731.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.oda.xml_1.2.1.v201104121500.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.oracle_1.0.0.v200908130544.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.oracle.dbdefinition_1.0.102.v201101120745.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.postgresql_1.0.1.v200906020900.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.enablement.postgresql.dbdefinition_1.0.1.v200906161800.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.modelbase.dbdefinition_1.0.2.v201002130228.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.modelbase.derby_1.0.0.v201002161452.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.modelbase.sql_1.0.4.v201002250945.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.datatools.modelbase.sql.query_1.1.1.v201008100700.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.emf_2.6.0.v20110905-0916.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.emf.common_2.7.0.v20110905-0902.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.emf.ecore_2.7.0.v20110905-0902.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.emf.ecore.change_2.7.1.v20110829-1916.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.emf.ecore.xmi_2.7.0.v20110520-1406.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.equinox.app_1.3.100.v20110321.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.equinox.common_3.6.0.v20110523.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.equinox.preferences_3.4.1.R37x_v20110725.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.osgi.services_3.3.0.v20110513.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.eclipse.update.configurator_3.3.100.v20100512.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.w3c.css.sac_1.3.0.v200805290154.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.w3c.dom.smil_1.0.0.v200806040011.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/org.w3c.dom.svg_1.1.0.v201011041433.jar"/>
+ <classpathentry kind="var" path="APPS/birt/birt-runtime-3_7_1/ReportEngine/lib/Tidy.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1 @@
+bin/**
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>birt-3.7.1-aggregator</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,12 @@
+#Tue Jan 03 15:27:54 IST 2012
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
@@ -0,0 +1,63 @@
+package com.eclipse.birt.test;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.OutputStream;
+import java.util.logging.Level;
+
+import org.eclipse.birt.core.exception.BirtException;
+import org.eclipse.birt.core.framework.Platform;
+import org.eclipse.birt.report.engine.api.EngineConfig;
+import org.eclipse.birt.report.engine.api.IReportEngine;
+import org.eclipse.birt.report.engine.api.IReportEngineFactory;
+import org.eclipse.birt.report.engine.api.IReportRunnable;
+import org.eclipse.birt.report.engine.api.IRunAndRenderTask;
+import org.eclipse.birt.report.engine.api.PDFRenderOption;
+
+public class RunningCountFieldTest {
+
+ /**
+ * @param args
+ * @throws BirtException
+ * @throws FileNotFoundException
+ */
+ public static void main(String[] args) throws BirtException,
+ FileNotFoundException {
+ IReportEngine engine = null;
+
+ try {
+ EngineConfig config = new EngineConfig();
+
+ Platform.startup(config);
+ IReportEngineFactory factory = (IReportEngineFactory) Platform
+ .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
+ engine = factory.createReportEngine(config);
+ engine.changeLogLevel(Level.WARNING);
+
+ File outputFile = new File("src/java/report/op.pdf");
+ File designFile = new File("src/java/report/running-count-test.rptdesign");
+ System.out.println(designFile.getAbsolutePath());
+
+ IReportRunnable design = engine
+ .openReportDesign(designFile.getAbsolutePath());
+
+ IRunAndRenderTask task = engine.createRunAndRenderTask(design);
+
+ PDFRenderOption options = new PDFRenderOption();
+ options.setOutputFormat("pdf");
+ options.setOutputFileName(outputFile.getAbsolutePath());
+
+ task.setRenderOption(options);
+ task.run();
+ task.close();
+
+ } finally {
+ if (engine != null) {
+ engine.destroy();
+ }
+ Platform.shutdown();
+ }
+ }
+
+}
@@ -0,0 +1,18 @@
+<root>
+ <employee>
+ <employee-no>01</employee-no>
+ <name>Arun</name>
+ </employee>
+ <employee>
+ <employee-no>02</employee-no>
+ <name>Krishna</name>
+ </employee>
+ <employee>
+ <employee-no>10</employee-no>
+ <name>John</name>
+ </employee>
+ <employee>
+ <employee-no>100</employee-no>
+ <name>Sami</name>
+ </employee>
+</root>
Oops, something went wrong.

0 comments on commit 24bf838

Please sign in to comment.