Project

General

Profile

« Previous | Next » 

Revision 2103

Added by Matt Jones over 20 years ago

Updated build.xml to add targets for doing the 1.4 database sql upgrades.
Also note I made it work with both oracle and sql, and note that the MS
SQL Server sql scripts seem to be lacking -- some are missing. Need to
resolve this before release.

View differences:

build.xml
53 53
     <property name="jdbc" value="${jdbc_base}/classes111.zip" />
54 54
     <!-- Property to indicate is not MSSQL installation-->
55 55
     <property name="other" value="yes"/>
56
     <property name="install-sql" 
57
               value="xmltables.sql" />
58
     <property name="upgrade-1.2-sql" 
59
               value="upgrade-db-to-1.2.sql" />
60
     <property name="upgrade-1.3-sql" 
61
               value="upgrade-db-to-1.3.sql" />
62
     <property name="upgrade-1.4-sql" 
63
               value="upgrade-db-to-1.4.sql" />
56 64
   </target>
57 65

  
58 66
   <target name="postgresql" if="use-postgresql">
......
64 72
     <property name="jdbc" value="lib/jdbc7.1-1.2.jar" />
65 73
     <!-- Property to indicate is not MSSQL installation-->
66 74
     <property name="other" value="yes"/>
75
     <property name="install-sql" 
76
               value="xmltables_postgres.sql" />
77
     <property name="upgrade-1.2-sql" 
78
               value="upgrade-db-to-1.2_postgres.sql" />
79
     <property name="upgrade-1.3-sql" 
80
               value="upgrade-db-to-1.3_postgres.sql" />
81
     <property name="upgrade-1.4-sql" 
82
               value="upgrade-db-to-1.4_postgres.sql" />
67 83
    </target>
68 84
   
69 85
   <target name="sqlserver" if="use-sqlserver">
......
448 464
          url="${jdbc-connect}"
449 465
          userid="${user}"
450 466
          password="${password}"
451
          src="${build.src}/xmltables.sql" />
467
          src="${build.src}/${install-sql}" />
452 468
   </target>
453 469

  
454 470
   <target name="upgrade12" depends="prepare"
......
460 476
          url="${jdbc-connect}"
461 477
          userid="${user}"
462 478
          password="${password}"
463
          src="${build.src}/upgrade-db-to-1.2.sql" />
479
          src="${build.src}/${upgrade-1.2-sql}" />
464 480
   </target>
465 481

  
466 482
   <target name="upgrade13" depends="prepare"
......
472 488
          url="${jdbc-connect}"
473 489
          userid="${user}"
474 490
          password="${password}"
475
          src="${build.src}/upgrade-db-to-1.3.sql" />
491
          src="${build.src}/${upgrade-1.3-sql}" />
476 492
   </target>
477 493

  
494
   <target name="upgrade14" depends="prepare"
495
            description="Updates the database tables to upgrade to version 1.4">
496
     <echo/>
497
     <echo>Updating the database tables to upgrade to version 1.4...</echo>
498
     <sql driver="${dbDriver}"
499
          classpath="${jdbc}:${jdbc-add1}:${jdbc-add2}"
500
          url="${jdbc-connect}"
501
          userid="${user}"
502
          password="${password}"
503
          src="${build.src}/${upgrade-1.4-sql}" />
504
   </target>
505

  
478 506
   <target name="install" depends="war" description="* Full Install *">
479 507
       <mkdir dir="${datafilepath}" />
480 508
       <mkdir dir="${inlinedatafilepath}" />

Also available in: Unified diff