weaver      2004/12/01 12:27:49

  Modified:    maven-plugin plugin.jelly
  Log:
  fixed script execution order
  
  Revision  Changes    Path
  1.24      +12 -1     jakarta-jetspeed-2/maven-plugin/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/maven-plugin/plugin.jelly,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- plugin.jelly      1 Dec 2004 19:22:34 -0000       1.23
  +++ plugin.jelly      1 Dec 2004 20:27:49 -0000       1.24
  @@ -87,8 +87,19 @@
        <echo>*************************************</echo>
       <echo>*   Executing standard SQL scripts   *</echo>
       <echo>*************************************</echo>
  -     <!-- Run standard SQL scripts -->
  +    <!-- Run standard DB-specific SQL scripts -->
       <util:file 
name="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.production.database.default.name}"
 var="sqlSrcDir"/>
  +    <j:if test="${sqlSrcDir.exists()}">
  +      <j:forEach items="${sqlSrcDir.listFiles()}" var="sqlFile">
  +        <j:if test="${sqlFile.name.endsWith('.sql')}">
  +          <j:set var="database.arg.script" value="${sqlFile.absolutePath}" />
  +          <attainGoal name="jetspeed2:db.execute" />
  +        </j:if>
  +      </j:forEach>
  +    </j:if>
  +    
  +    <!-- Run standard non-DB-specific SQL scripts -->
  +    <util:file name="${org.apache.jetspeed.plugin.root}/plugin-resources" 
var="sqlSrcDir"/>
       <j:if test="${sqlSrcDir.exists()}">
         <j:forEach items="${sqlSrcDir.listFiles()}" var="sqlFile">
           <j:if test="${sqlFile.name.endsWith('.sql')}">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to