svn commit: r1100240 - /ofbiz/trunk/build.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1100240 - /ofbiz/trunk/build.xml

erwan
Author: erwan
Date: Fri May  6 14:49:59 2011
New Revision: 1100240

URL: http://svn.apache.org/viewvc?rev=1100240&view=rev
Log:
Configuring the sonar task so it can be used on the ASF servers. Adding also a full sonar task launching all the ant task. See https://issues.apache.org/jira/browse/INFRA-3590 if you want more info

Modified:
    ofbiz/trunk/build.xml

Modified: ofbiz/trunk/build.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=1100240&r1=1100239&r2=1100240&view=diff
==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Fri May  6 14:49:59 2011
@@ -805,7 +805,7 @@ under the License.
         </cobertura-report>
     </target>
 
-    <target name="sonar" depends="download-sonar-ant-task, sonar-init, cobertura-report-xml"
+    <target name="sonar" depends="download-sonar-ant-task, sonar-init"
             description="Sonar code analysis. You need a Sonar instance running to use it. More info on http://www.sonarsource.org/">
         <exec executable="svn" dir="." output="runtime/svninfo_tmp.xml">
             <arg value="info"/>
@@ -864,9 +864,25 @@ under the License.
             <property key="sonar.cobertura.reportPath" value="runtime/logs/cobertura-report/coverage.xml"/>
             <property key="sonar.java.source" value="1.6" />
             <property key="sonar.java.target" value="1.6" />
+            <property key="sonar.jdbc.url"
+               value="jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8" />
+            <property key="sonar.jdbc.driverClassName" value="com.mysql.jdbc.Driver" />
+            <property key="sonar.jdbc.username" value="${sonar.jdbc.username}" />
+            <property key="sonar.jdbc.password" value="${sonar.jdbc.password}" />
+
+            <!-- SERVER ON A REMOTE HOST -->
+            <property key="sonar.host.url" value="${sonar.host.url}" />
         </sonar:sonar>
     </target>
 
+    <target name="full-sonar">
+        <antcall target="clean-all"/>
+        <antcall target="run-install"/>
+        <antcall target="run-tests"/>
+        <antcall target="cobertura-report-xml"/>
+        <antcall target="sonar"/>
+    </target>
+
     <!-- ================================================================== -->
     <!--    Ivy targets, more info at  http://ant.apache.org/ivy/  -->
     <!-- ================================================================== -->