Author: keith Date: Fri Jul 18 02:13:04 2008 New Revision: 19476 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19476
Log: Adding Data Services samples into the build. CSV and EXcEL Added: trunk/mashup/java/modules/samples/CSVSample/ trunk/mashup/java/modules/samples/CSVSample/CSVSample.dbs (contents, props changed) trunk/mashup/java/modules/samples/CSVSample/CSVSample.resources/ trunk/mashup/java/modules/samples/CSVSample/CSVSample.resources/Products.csv (contents, props changed) trunk/mashup/java/modules/samples/CSVSample/CSVSample.tags trunk/mashup/java/modules/samples/ExcelSample/ trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.dbs (contents, props changed) trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.resources/ trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.resources/Products.xls (contents, props changed) trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.tags Modified: trunk/mashup/java/modules/distribution/pom.xml Modified: trunk/mashup/java/modules/distribution/pom.xml URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/distribution/pom.xml?rev=19476&r1=19475&r2=19476&view=diff ============================================================================== --- trunk/mashup/java/modules/distribution/pom.xml (original) +++ trunk/mashup/java/modules/distribution/pom.xml Fri Jul 18 02:13:04 2008 @@ -228,6 +228,8 @@ <copy toDir="${dist.dir}/scripts/samples" filtering="off"> <fileset dir="../samples/tomatoTube"/> <fileset dir="../samples/formulaFlicks"/> + <fileset dir="../samples/ExcelSample"/> + <fileset dir="../samples/CSVSample"/> </copy> <echo message="### Copy the Docs ###"/> Added: trunk/mashup/java/modules/samples/CSVSample/CSVSample.dbs URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/samples/CSVSample/CSVSample.dbs?pathrev=19476 ============================================================================== --- (empty file) +++ trunk/mashup/java/modules/samples/CSVSample/CSVSample.dbs Fri Jul 18 02:13:04 2008 @@ -0,0 +1,24 @@ +<data name="CSVSample"> + + <config> + <property name="csv_datasource">./scripts/samples/CSVSample.resources/Products.csv</property> + <property name="csv_columnseperator">,</property> + <property name="csv_columns">ID,Classification,Price,Name</property> + <property name="csv_columnordinal">1,2,3,4</property> + <property name="csv_startingrow">2</property> + <property name="csv_maxrowcount">-1</property> + <property name="csv_hasheader">true</property> + </config> + + <operation name="getProducts"> + <call-query href="productsQuery" /> + </operation> + <query id="productsQuery"> + <result element="Products" rowName="Product"> + <element name="ID" column="1" /> + <element name="Category" column="2" /> + <element name="Price" column="3" /> + <element name="Name" column="4" /> + </result> + </query> +</data> Added: trunk/mashup/java/modules/samples/CSVSample/CSVSample.resources/Products.csv URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/samples/CSVSample/CSVSample.resources/Products.csv?pathrev=19476 ============================================================================== --- (empty file) +++ trunk/mashup/java/modules/samples/CSVSample/CSVSample.resources/Products.csv Fri Jul 18 02:13:04 2008 @@ -0,0 +1,9 @@ +ID,Name,Classification,Price +S10_1678,1969 Harley Davidson Ultimate Chopper,Motorcycles,1000 +S10_1949,1952 Alpine Renault 1300,Classic Cars,600 +S10_2016,1996 Moto Guzzi 1100i,Motorcycles,456 +S10_4698,2003 Harley-Davidson Eagle Drag Bike,Motorcycles,345 +S10_4757,1972 Alfa Romeo GTA,Classic Cars,230 +S10_4962,1962 LanciaA Delta 16V,Classic Cars,890 +S12_1099,1968 Ford Mustang,Classic Cars,560 +S12_1108,2001 Ferrari Enzo,Classic Cars,900 Added: trunk/mashup/java/modules/samples/CSVSample/CSVSample.tags URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/samples/CSVSample/CSVSample.tags?pathrev=19476 ============================================================================== --- (empty file) +++ trunk/mashup/java/modules/samples/CSVSample/CSVSample.tags Fri Jul 18 02:13:04 2008 @@ -0,0 +1,21 @@ +<!-- + ~ Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> +<tags> + <tag>built-in</tag> + <tag>sample</tag> + <tag>CSV</tag> + <tag>Data Service</tag> +</tags> Added: trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.dbs URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.dbs?pathrev=19476 ============================================================================== --- (empty file) +++ trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.dbs Fri Jul 18 02:13:04 2008 @@ -0,0 +1,22 @@ +<data name="ExcelSample"> + + <config> + <property name="excel_datasource">./scripts/samples/ExcelSample.resources/Products.xls</property> + </config> + + <operation name="getProducts"> + <call-query href="sheet1Query" /> + </operation> + <query id="sheet1Query"> + <excel> + <workbookname>Sheet1</workbookname> + <hasheader>true</hasheader> + <startingrow>2</startingrow> + <maxrowcount>-1</maxrowcount> + </excel> + <result element="Products" rowName="Product"> + <element name="ID" column="ID" /> + <element name="Name" column="Model" /> + </result> + </query> +</data> Added: trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.resources/Products.xls URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.resources/Products.xls?pathrev=19476 ============================================================================== Binary file. No diff available. Added: trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.tags URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.tags?pathrev=19476 ============================================================================== --- (empty file) +++ trunk/mashup/java/modules/samples/ExcelSample/ExcelSample.tags Fri Jul 18 02:13:04 2008 @@ -0,0 +1,21 @@ +<!-- + ~ Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> +<tags> + <tag>built-in</tag> + <tag>sample</tag> + <tag>Exel</tag> + <tag>Data Service</tag> +</tags> _______________________________________________ Mashup-dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev
