portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2 maven.xml
Date Fri, 03 Dec 2004 22:01:38 GMT
taylor      2004/12/03 14:01:38

  Modified:    .        maven.xml
  Log:
  required drops now for InnoDB cascading dels
  
  Revision  Changes    Path
  1.105     +20 -0     jakarta-jetspeed-2/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/maven.xml,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- maven.xml	14 Oct 2004 19:03:36 -0000	1.104
  +++ maven.xml	3 Dec 2004 22:01:38 -0000	1.105
  @@ -366,11 +366,13 @@
     <!-- ================================================================ -->
     <goal name="db.create.test">
       <attainGoal name="db.test.properties"/>
  +    <attainGoal name="db.drop2"/>	
       <attainGoal name="db.create"/>
     </goal>
   
     <goal name="db.create.production">
       <attainGoal name="db.production.properties"/>
  +    <attainGoal name="db.drop2"/>		
       <attainGoal name="db.create"/>
     </goal>
   
  @@ -413,7 +415,25 @@
       <j:set var="database.arg.script" value="./src/sql/${org.apache.jetspeed.database.default.name}/registry-drop-db.sql"
/>
       <attainGoal name="db.execute" />
     </goal>
  +  
  +  <goal name="db.drop2">
  +    <j:choose>
  +      <j:when test="${org.apache.jetspeed.database.default.name == 'mssql'}" >		
  +          <j:set var="database.arg.script" value="./src/sql/mssql/drop.sql" />
  +          <attainGoal name="db.execute" />		  
  +      </j:when>   	
  +      <j:when test="${org.apache.jetspeed.database.default.name == 'oracle'}" >	

  +          <j:set var="database.arg.script" value="./src/sql/oracle/drop.sql" />
  +          <attainGoal name="db.execute" />		  
  +      </j:when>   		  
  +	  </j:choose>
  +  </goal>
   
  +  <goal name="db.drop.oracle">
  +    <attainGoal name="db.test.properties"/>
  +      <j:set var="database.arg.script" value="./src/sql/oracle/drop2.sql" />
  +      <attainGoal name="db.execute" />		      	
  +  </goal>
     <!-- ================================================================ -->
     <!-- EXECUTE RECREATE DB SQL SCRIPTS                                  -->
     <!-- TODO: I'd like to implement this as a plugin or use commons SQL  -->
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message