You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2012/04/10 19:32:06 UTC

svn commit: r1311877 - in /ofbiz/trunk: build.xml ivy.xml

Author: jleroux
Date: Tue Apr 10 17:32:05 2012
New Revision: 1311877

URL: http://svn.apache.org/viewvc?rev=1311877&view=rev
Log:
A patch from Pierre Smits "Including an ant target and ivy solution for downloading the mysql driver" https://issues.apache.org/jira/browse/OFBIZ-4800

Enhancing the OFBiz build solution by including a mechanism to download and install a mySQL driver for users who have (or want to use) that db platform.

jleroux: worked for mysql-connector-java-5.1.6.jar

Modified:
    ofbiz/trunk/build.xml
    ofbiz/trunk/ivy.xml

Modified: ofbiz/trunk/build.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=1311877&r1=1311876&r2=1311877&view=diff
==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Tue Apr 10 17:32:05 2012
@@ -1092,6 +1092,10 @@ under the License.
         <ivy:retrieve pattern="framework/base/lib/[artifact]-[revision].[ext]" conf="sonar-ant-task"/>
     </target>
 
+    <target name="download-mySQL-JDBC" depends="ivy-init" description="Download mySQL jdbc driver">
+        <ivy:retrieve pattern="framework/entity/lib/jdbc/[artifact]-[revision].[ext]" conf="mysql"/>
+    </target>
+
     <!-- ================================================================== -->
     <!-- Create New Component. This target will create basic directory structure for an OFBiz component in hot-deploy directory. -->
     <!-- ================================================================== -->

Modified: ofbiz/trunk/ivy.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/ivy.xml?rev=1311877&r1=1311876&r2=1311877&view=diff
==============================================================================
--- ofbiz/trunk/ivy.xml (original)
+++ ofbiz/trunk/ivy.xml Tue Apr 10 17:32:05 2012
@@ -26,12 +26,14 @@
     </info>
     <configurations>
         <conf name="cobertura" description="downloads cobertura 1.9.4.1 (GPL2.0) http://cobertura.sourceforge.net/"/>
+        <conf name="mysql" description="downloads the mysql JDBC driver"/>
         <conf name="postgres" description="downloads the postgres JDBC driver"/>
         <conf name="sonar-ant-task" description="downloads the ant sonar task (need sonar>=2.8)
             http://docs.codehaus.org/display/SONAR/Analyse+with+Ant+Task"/>
     </configurations>
     <dependencies>
         <dependency org="net.sourceforge.cobertura" name="cobertura" rev="1.9.4.1" conf="cobertura->default"/>
+        <dependency org="mysql" name="mysql-connector-java" rev="5.1.6" conf="mysql->default"/>
         <dependency org="postgresql" name="postgresql" rev="9.0-801.jdbc4" conf="postgres->default"/>
         <dependency org="org.codehaus.sonar-plugins" name="sonar-ant-task" rev="1.3" conf="sonar-ant-task->default"/>