Quantcast

Ant & multiple-modules

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Ant & multiple-modules

Jonadon Qu
Hi
I have used Ant to build C++ Project. The build.xml can run successfully.
 
<?xml version="1.0"?>
<project name = "try_ant :: parent" basedir = ".">
<!-- Define the Sonar task if this hasn't been done in a common script -->
<taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
<classpath path="/proj/ims/IPWorks/apache-ant-1.8.4/lib/sonar-ant-task-1.4.jar" />
</taskdef>
 
<!-- Add the target -->
<target name="sonar">
<property name="sonar.sources"  value="src" />         
<property name="sonar.projectName" value="Sample C++ Multiple Project" />
<property name="sonar.language" value="c++" />
<property name="sonar.dynamicAnalysis"  value="reuseReports" />
 
<sonar:sonar key="org.example:example" version="0.1-SNAPSHOT" xmlns:sonar="antlib:org.sonar.ant"/>
</target>
 
<target name="clean">
<delete dir=".sonar"/>
<ant dir="core" target="clean"/>
<ant dir="common" target="clean"/>
</target>
 
<target name="compile">
<ant dir="core" target="compile"/>
<ant dir="common" target="compile"/>
</target>
 
<property name="sonar.modules" value="core/build.xml,common/build.xml"/>
</project>
 
 
But when I add the sentences below (red mark). It shows:
BUILD FAILED
/vobs/IPWORKS/src_ipworks/aaa/build.xml:15: java.lang.IllegalArgumentException:
The following mandatory information is missing:
  - property 'sonar.projectKey'
  - property 'sonar.sources'
 
Could you know why? Can you give some help?
 
Thanks!
Jonadon
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Ant & multiple-modules

Benjamin LIPERE

Hello.

 

First, build a sonar C++ exemple project.

When sonar work, the add the ant compilation code.

They say that to me and it working.

THe problem come for build 50 projects at the same time on my plateform, but one no problem.

++

Best Regards.

LIPERE BEnjamin.

 

Le 2012-09-13 10:42, Jonadon Qu a écrit :

Hi
I have used Ant to build C++ Project. The build.xml can run successfully.
 
 
 
 
 
 
 
 
 
 
         
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
But when I add the sentences below (red mark). It shows:
BUILD FAILED
/vobs/IPWORKS/src_ipworks/aaa/build.xml:15: java.lang.IllegalArgumentException:
The following mandatory information is missing:
  - property 'sonar.projectKey'
  - property 'sonar.sources'
 
Could you know why? Can you give some help?
 
Thanks!
Jonadon
 

 

--
Complexité structurelle, mais simplicité conceptuelle et ergonomique, pour la suite de l'homme.
LIPERE Benjamin.
AutoEntreprise ECINETIC.
06.26.14.35.20
[hidden email]

Loading...