Share

NAntContrib

Tracker: Patches

5 CodeStats Enhancements to Support Multiple LineCounters - ID: 1108543
Last Update: Comment added ( drieseng )

The codestats module did not quite fit what I needed it
to do which was to allow me to get a linecount for
multiple kinds of file types, label them and append the
output to a file.

So I made the modifications needed to enable this
functionality. I have included a patch file for the
CodeStats.cs file located in the Tasks folder as well as 2
new files for the CodeStatsType and
CodeStatsTypeCollection.

Please let me know what I need to do to get this
integrated into NAntContrib.


Changes:

* Made it so you can append to the output file
* Made it so that you can choose to only show the
summary for the whole fileset instead of individual files.
* Added buildname attribute
* Fixed bug with the file summary output including the
directory and filename twice
* Re-formatted xml document output so that for each
run, it creates a code summary node, then a linecount
node for each fileset and a file summaries/summary node
for each individual file.


Thx


justinj ( digitaldrummerj ) - 2005-01-24 18:59

5

Closed

Fixed

Gert Driesen

None

None

Public


Comments ( 10 )

Date: 2005-04-16 08:27
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

This is now in cvs.

Thanks for the contribution ! (sorry that it took so long for this
to get committed)


Date: 2005-04-15 08:31
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

This will be committed in time for NAntContrib 0.85 RC3.


Date: 2005-03-08 22:47
Sender: digitaldrummerj

Logged In: YES
user_id=1176927

Is it going to be possible to get this patch committed?


Date: 2005-02-14 19:51
Sender: digitaldrummerj

Logged In: YES
user_id=1176927

i changed the CodeStatsType to inherit from FileSet.
Please let me know what else I need to do to ensure that this
makes it into the final nantcontrib release.


Date: 2005-02-14 19:51
Sender: digitaldrummerj

Logged In: YES
user_id=1176927

i changed the CodeStatsType to inherit from FileSet.
Please let me know what else I need to do to ensure that this
makes it into the final nantcontrib release.


Date: 2005-02-04 19:02
Sender: digitaldrummerj

Logged In: YES
user_id=1176927

I am not sure on this one. I am not an expert on the inner
working of nant. I just followed some examples that I had of
other custom task that I had.

I can make an change that you feel are needed for this to
get committed into cvs.




Date: 2005-01-31 19:58
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

Just had a quick look, and I wonder if it would be better to
have the CodeStatsType derive from FileSet.

I won't have much time until friday, so ...



Date: 2005-01-31 17:43
Sender: digitaldrummerj

Logged In: YES
user_id=1176927

any word on getting this committed?


Date: 2005-01-25 19:04
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

I'll try to review it asap, but don't hesitate to remind me if
necessary ;-)


Date: 2005-01-25 07:13
Sender: jsmorris

Logged In: YES
user_id=405288

I would very much like to see this patch commited before the
nant .85 release. I could use this enhancement immediately!


Attached Files ( 3 )

Filename Description Download
test.xml sample output Download
SampleBuildFile.build sample build file Download
CodeStats.zip Updated Files Download

Changes ( 9 )

Field Old Value Date By
resolution_id None 2005-04-16 08:27 drieseng
status_id Open 2005-04-16 08:27 drieseng
assigned_to nobody 2005-04-16 08:27 drieseng
close_date - 2005-04-16 08:27 drieseng
File Deleted 116979: 2005-02-14 19:52 digitaldrummerj
File Added 120022: CodeStats.zip 2005-02-14 19:52 digitaldrummerj
File Added 116988: SampleBuildFile.build 2005-01-24 19:47 digitaldrummerj
File Added 116987: test.xml 2005-01-24 19:46 digitaldrummerj
File Added 116979: CodeStatsPatch.zip 2005-01-24 18:59 digitaldrummerj