Author: taylor
Date: Sat Jan  6 23:06:41 2007
New Revision: 493669

URL: http://svn.apache.org/viewvc?view=rev&rev=493669
Log:
enable seed data from custom projects to override default seed data (maven-1)

Modified:
    portals/jetspeed-2/trunk/maven-plugin/plugin.jelly

Modified: portals/jetspeed-2/trunk/maven-plugin/plugin.jelly
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/maven-plugin/plugin.jelly?view=diff&rev=493669&r1=493668&r2=493669
==============================================================================
--- portals/jetspeed-2/trunk/maven-plugin/plugin.jelly (original)
+++ portals/jetspeed-2/trunk/maven-plugin/plugin.jelly Sat Jan  6 23:06:41 2007
@@ -198,7 +198,16 @@
         <include name="*seed.xml"/>
       </fileset>
     </copy>        
-    
+    <!-- Copy over custom build seed data -->
+       <util:file var="customExists" name="./src/sql/"/> 
+       <j:if test="${customExists.exists()}">
+               <copy todir="${portal.sql.target.dir}"             
+                     overwrite="true" verbose="true" failonerror="false" 
flatten="true">
+                 <fileset dir="./src/sql/">
+                   <include name="*seed.xml"/>
+                 </fileset>
+               </copy>                 
+    </j:if>    
   </goal>
   
   <goal name="j2:portal.conf.ldap" prereqs="j2:_check.required.properties">



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

Reply via email to