portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r280532 - in /portals/jetspeed-2/trunk: etc/sql/postgres/ maven-plugin/plugin.jelly
Date Tue, 13 Sep 2005 10:19:18 GMT
Author: ate
Date: Tue Sep 13 03:19:05 2005
New Revision: 280532

URL: http://svn.apache.org/viewcvs?rev=280532&view=rev
Log:
Fix error on non-existing custom target rdbms scripts dir (currently sapdb) and remove thus
also no longer needed empty postgres directory.

Removed:
    portals/jetspeed-2/trunk/etc/sql/postgres/
Modified:
    portals/jetspeed-2/trunk/maven-plugin/plugin.jelly

Modified: portals/jetspeed-2/trunk/maven-plugin/plugin.jelly
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-plugin/plugin.jelly?rev=280532&r1=280531&r2=280532&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-plugin/plugin.jelly (original)
+++ portals/jetspeed-2/trunk/maven-plugin/plugin.jelly Tue Sep 13 03:19:05 2005
@@ -732,16 +732,19 @@
   </goal>
   
   <goal name="j2:_copy.rdbms.sql.scripts" >
-    <!-- Copy specific DB scripts possibly also overriding the Torque-generated ones -->
     
-    <copy todir="${portal.sql.target.dir}/${org.apache.jetspeed.target.rdbms}"
-          overwrite="true"
-          verbose="true"
-          failonerror="false"
-          flatten="false">
-      <fileset dir="${portal.sql.src.dir}/${org.apache.jetspeed.target.rdbms}">
-        <include name="**/*.sql"/>
-      </fileset>
-    </copy>        
+    <util:file var="targetRdbmsScriptsDir" name="${portal.sql.src.dir}/${org.apache.jetspeed.target.rdbms}"
/> 
+    <j:if test="${targetRdbmsScriptsDir.exists()}">
+      <!-- Copy specific DB scripts possibly also overriding the Torque-generated ones
-->      
+      <copy todir="${portal.sql.target.dir}/${org.apache.jetspeed.target.rdbms}"
+            overwrite="true"
+            verbose="true"
+            failonerror="false"
+            flatten="false">
+        <fileset dir="${portal.sql.src.dir}/${org.apache.jetspeed.target.rdbms}">
+          <include name="**/*.sql"/>
+        </fileset>
+      </copy>
+    </j:if>
   </goal>
 
   <!-- Use this uility goal to process all of the .sql scripts in the specified path using
the specified goal -->



---------------------------------------------------------------------
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