portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r545107 - /portals/jetspeed-2/trunk/maven-plugin/plugin.jelly
Date Thu, 07 Jun 2007 08:41:40 GMT
Author: ate
Date: Thu Jun  7 01:41:39 2007
New Revision: 545107

URL: http://svn.apache.org/viewvc?view=rev&rev=545107
Log:
Fix for JS2-673: Set sql.src.path value in the project.properties
See: http://issues.apache.org/jira/browse/JS2-673

Note: I've implemented this through an optional property "org.apache.jetspeed.production.database.user.sql.scripts.path".
If not defined, the default ${basedir}/src/sql will be used.

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=545107&r1=545106&r2=545107
==============================================================================
--- portals/jetspeed-2/trunk/maven-plugin/plugin.jelly (original)
+++ portals/jetspeed-2/trunk/maven-plugin/plugin.jelly Thu Jun  7 01:41:39 2007
@@ -332,10 +332,11 @@
   <goal name="j2:db.user.scripts.production" >
      <attainGoal name="j2:_db.production.properties"/>         
      <echo>Running user-defined SQL scripts...</echo>   
-     <j:set var="sql.src.path" value="${basedir}/src/sql"/>
+     <j:set var="sql.src.path" value="${org.apache.jetspeed.production.database.user.sql.scripts.path}"/>
+     <maven:property name="sql.src.path" defaultValue="${basedir}/src/sql"/>
      <j:set var="database.arg.onerror" value="abort"/> 
      <j:set var="process.database.script.goal" value="j2:_db.execute"/>
-     <attainGoal name="j2:_process.all.scripts.in.path"/>   
+     <attainGoal name="j2:_process.all.scripts.in.path"/>
   </goal>    
     
 	<goal name="j2:db.entities">



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


Mime
View raw message