Changeset 2006

Show
Ignore:
Timestamp:
01/04/09 14:58:26
Author:
douglm
Message:

Add new option to create an empty system with a single root user specified by a parameter.

Fixed one or two small errors unearthed during the process.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/bwbuild/default/cal.options.xml

    r2000 r2006  
    157157 
    158158        <indexRoot>lucene/indexroot</indexRoot> 
     159 
     160        <rootUsers>caladmin</rootUsers> 
    159161      </syspars> 
    160162 
  • trunk/deployment/dumprestore/shellscr/resources/dumpres.bat

    r1325 r2006  
    5353  ECHO        Populate the database using the provided initial data. 
    5454  ECHO. 
     55  ECHO     newsys [ -ndebug] 
     56  ECHO        Create a new empty system based on the build configuration. 
     57  ECHO. 
    5558  ECHO     dump {filename} 
    5659  ECHO        Dump the database in xml format suitable for restore. 
     
    7174  ECHO. 
    7275  ECHO     schema [--haltonerror] 
    73   ECHO        Create a schema from the xml schema. Placed in a file in the  
     76  ECHO        Create a schema from the xml schema. Placed in a file in the 
    7477  ECHO        current directory 
    7578  ECHO. 
  • trunk/deployment/dumprestore/shellscr/resources/dumpres.sh

    r1497 r2006  
    4747    $RESTORECMD -appname $APPNAME -f ./data/initbedework.xml -initSyspars $2 $3 $4 $5 $6 $7 $8 $9 
    4848    ;; 
     49  newsys) 
     50    echo $RESTORECMD -appname $APPNAME -newSystem -rootid $2 $3 $4 $5 $6 $7 $8 $9 
     51    $RESTORECMD -appname $APPNAME -newSystem -rootid $2 $3 $4 $5 $6 $7 $8 $9 
     52    ;; 
    4953  drop) 
    5054    echo $SCHEMACMD --text --drop --format --delimiter="@SCHEMA-DELIMITER@" --config=./classes/hibernate.cfg.xml --output=schema.sql 
     
    7983    echo $"     Populate the database using the provided initial data." 
    8084    echo $" " 
     85    echo $"  $0 newsys <root-user> [ -ndebug]" 
     86    echo $"     Create a new empty system based on the build configuration with a" 
     87    echo $"     single root user." 
     88    echo $" " 
    8189    echo $"  $0 drop [--haltonerror] " 
    8290    echo $"     Create a file in the current directory with sql drop statements"