Hi Erwan,

In build.xml is following code:

        <!-- list of optional Sonar properties -->

        <property name="sonar.projectName" value="Apache OFBiz" />

        <sonar:sonar key="org.apache:ofbiz" version=
"${info.entry.commit(revision)}" xmlns:sonar="antlib:org.sonar.ant:sonar"/>

        <property name="sonar.dynamicAnalysis" value="reuseReports" />

        <property name="sonar.cobertura.reportPath" value=
"runtime/logs/cobertura-report/coverage.xml"/>

        <property name="sonar.java.source" value="1.6" />

        <property name="sonar.java.target" value="1.6" />

        <property name="sonar.jdbc.url"

           value=
"jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8"
/>

        <property name="sonar.jdbc.driverClassName" value=
"com.mysql.jdbc.Driver" />

        <property name="sonar.jdbc.username" value="${sonar.jdbc.username}"
/>

        <property name="sonar.jdbc.password" value="${sonar.jdbc.password}"
/>

I am trying to set this up and I have following questions:

   1. Should the mySQL driver be in framework/entity/lib/jdbc folder?
   2. My mySQL db for sonar is on a different server (not localhost). Must
   I adjust build.xml or pass it as a parameter?
   3. Am I correct to understand that both ${sonar.jdbc.username}
   and ${sonar.jdbc.password} are to be passed as parameters when triggering
   the target, or are they supposed to be set in build.xml?

I appreciate your input.

Regards,

Pierre

Reply via email to