Saturday, 15 March 2014

sonarqube - getting error in sonar task while executing build.xml -



sonarqube - getting error in sonar task while executing build.xml -

i have configured sonar in build xml shown below upon execution of build.xml getting error below..can u plas advise how overcome error

target name="sonar"> <echo message="**** thirdparty.lib.dir -- > ${thirdparty.lib.dir}/sonar ****"/> <sonar:sonar workdir="${build.dir}" key="gtr_61.all.rules:dev" version="1.0" xmlns:sonar="antlib:org.sonar.ant"> <!-- source directories (required) --> <sources> <path location="${pps.dir}/src" /> <path location="${pn.dir}/src" /> </sources> <property key="sonar.host.url" value="https://abc/" /> <property key="sonar.jdbc.url" value="jdbc:oracle:thin:abc" /> <property key="sonar.jdbc.driverclassname" value="oracle.jdbc.driver.oracledriver" /> <property key="sonar.jdbc.username" value="=aaa" /> <property key="sonar.jdbc.password" value="bbb" /> <property name="sonar.scm.url" value="https://svn.ats" /> <property name="sonar.java.source" value="1.5" /> <property name="sonar.language" value="java"/> <property name="sonar.projectversion" value="1.0"/> <tstamp prefix="build-info"> <format property="current-date" pattern="dd-mmm-yyyy" locale="en" /> <format property="current-time" pattern="hh:mm:ss z" locale="en" /> <format property="year-month-day" pattern="yyyy-mm-dd" locale="en" /> </tstamp> <!-- cobertura --> <property key="sonar.cobertura.reportpath" value="cobertura-report/coverage.xml" /> <property key="sonar.dynamicanalysis" value="reusereports" /> <!-- binaries directories, contain illustration compiled java bytecode (optional) --> <binaries> <path location="${ps.dir}/build/classes" /> <path location="${omm.dir}/build/classes" /> </binaries> <!-- path libraries (optional). these libraries illustration used java findbugs plugin --> <libraries> <path location="${lib.dir}" /> </libraries> <property key="sonar.profile" value="abc rule" /> <!--property key="sonar.profile" value="custom rules" --> </sonar:sonar>

the error getting ..

onar [06:56:15]echo [06:56:15]**** thirdparty.lib.dir -- > /opt/app//buildagent-8.0.3/work/pla/lib/thirdparty/sonar **** [06:56:15]sonar:sonar [06:56:15]property doesn't back upwards "name" attribute

if feeling right you're using old version of sonarqube ant task. here way configure sonarqube ant task: http://docs.codehaus.org/display/sonar/analyzing+with+sonarqube+ant+task

sonarqube

No comments:

Post a Comment