contentstorage/castorage/conf/castoragedb.implml
changeset 73 4bc7b118b3df
child 107 b34d53f6acdf
equal deleted inserted replaced
66:32469d7d46ff 73:4bc7b118b3df
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <container xmlns="http://www.symbianfoundation.org/xml/implml/1">
       
     3     <tag name="target" value="rofs2"/>
       
     4     <tag name="target" value="rofs3"/>
       
     5     
       
     6     
       
     7     <!--
       
     8     Override the setting refs so that modifying HomeScreenDbSettings
       
     9     causes the execution of both the TemplateML and CommandML
       
    10     implementations. Otherwise the TemplateML implementation would be
       
    11     executed only if the settings have been changed, and the CommandML
       
    12     implementation would be executed every time.
       
    13     -->
       
    14     <settingRefsOverride>
       
    15         <settingRef value="CaStorageDbSetting"/>
       
    16     </settingRefsOverride>
       
    17     
       
    18     <!-- TemplateML implementation to create the .sql files -->
       
    19     <templateml xmlns="http://www.s60.com/xml/templateml/1">
       
    20         <!-- just to create empty folder, maybe it could be done better-->
       
    21         <output dir="content/private/20022F90" file="castorage.db" encoding="UTF-8"></output>        
       
    22         <output dir="temp/castoragedb/" file="castoragedb_create.sql" encoding="UTF-8">
       
    23             <template file="castoragedb_templates/castoragedb_create.sql"/>
       
    24         </output>
       
    25         <output dir="temp/castoragedb/" file="castoragedb_variant.sql" encoding="UTF-8">
       
    26             <template file="castoragedb_templates/castoragedb_variant.sql"/>
       
    27         </output>
       
    28     </templateml>
       
    29     
       
    30   <!-- CommandML implementation to create the database using the .sql files -->
       
    31     <commandml xmlns="http://www.s60.com/xml/commandml/1">
       
    32         <command executable="sqlite3" shell="true" cwd="%CONE_OUT_ABSOLUTE%/temp/castoragedb">
       
    33             <argument value='%CONE_OUT_ABSOLUTE%/content/private/20022F90/castorage.db ".read castoragedb_create.sql"'/>
       
    34         </command>
       
    35         <command executable="sqlite3" shell="true" cwd="%CONE_OUT_ABSOLUTE%/temp/castoragedb">
       
    36             <argument value='%CONE_OUT_ABSOLUTE%/content/private/20022F90/castorage.db  ".genfkey --exec"'/>
       
    37         </command>
       
    38         <command executable="sqlite3" shell="true" cwd="%CONE_OUT_ABSOLUTE%/temp/castoragedb">
       
    39             <argument value='%CONE_OUT_ABSOLUTE%/content/private/20022F90/castorage.db  ".read castoragedb_variant.sql"'/>
       
    40         </command>
       
    41     </commandml>
       
    42 
       
    43 
       
    44 </container>