Re: [Dev] Implementing -Dsetup in a Carbon product

2015-11-23 Thread Hasitha Hiranya
Hi, Thanks, Nirmal/Anuruddha, sources were useful Thanks On Sun, Nov 22, 2015 at 6:09 PM, Nirmal Fernando wrote: > Hi Hasitha, > > Check this >

Re: [Dev] Implementing -Dsetup in a Carbon product

2015-11-22 Thread Nirmal Fernando
Hi Hasitha, Check this https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.database/src/main/java/org/wso2/carbon/ml/database/internal/MLDatabaseService.java#L63 to

Re: [Dev] Implementing -Dsetup in a Carbon product

2015-11-21 Thread Hasitha Hiranya
Hi Anuruddha, Thanks for the response. Spotted following code, https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.database/src/main/java/org/wso2/carbon/ml/database/internal/MLConfigurationParser.java

Re: [Dev] Implementing -Dsetup in a Carbon product

2015-11-21 Thread Anuruddha Premalal
Hi Hiranya, [1] might help you. [1] https://github.com/wso2/carbon-ml/tree/master/components/ml/org.wso2.carbon.ml.database On Sat, Nov 21, 2015 at 8:58 AM, Hasitha Hiranya wrote: > Hi, > > In our carbon product, we have a new database to deal with. We have the DB > script

[Dev] Implementing -Dsetup in a Carbon product

2015-11-20 Thread Hasitha Hiranya
Hi, In our carbon product, we have a new database to deal with. We have the DB script that creates the necessary tables to work with the product in a specified database pointed by /repository/conf/datasources/masterdatasource.xml. If we write a code to source the DB Script, we need to read