Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: ANT-TASK-1.2
-
Fix Version/s: ANT-TASK-2.0
-
Component/s: Ant Task
-
Labels:None
-
Environment:Client: Windows 7 x64, JDK 1.6.0_29, Ant 1.8.1
Server: Linux, Sonar 2.11
-
Patch Submitted:Yes
-
Number of attachments :
Description
When analyzing a multi-modules Ant project, the version as defined with attribute version in the sonar task is correctly setup for the parent projet, it can be seen in the timeline view. However for the components (the Ant modules), the version is missing. So in the end with a timeline for each component with dates but no version. Maven projects do have this version for component, so I think that the current behavior is not correct.
To reproduce the bug, simply analyze the multi module example project, go to timeline of Module1, there is no version.
Attached is a simple patch against trunk revision 4600 that does seems to fix this. However I don't know if this is the right way to do it.
I have a question regarding fixing our existing data. We already have a lot of analysis performed on our system and they all misses the version in the components. However as the data is here in the database for each component and we have the version number on the parent project, is there a way to update the database using some sql query to add the version in the components ?