First you have to find the part of the VSS tree that you are supposed to analyze. Get it to an empty directory. Then go to that directory in Cygwin at /cygdrive/c/name of dir.
Then use find . -name "*.vpb" -name > myout.txt and repeat for *.sln if needed.
The resulting file is then input to a ruby file:
f = File.new("/vbproj.txt")
begin
while (line = f.readline)
$stdout.print line
$stdout.print "SetReport csv " + 34.chr + "c:\\singleton3.csv" + 34.chr + "\n"
$stdout.print "Report Summary\n"
end
rescue EOFError
f.close
end
where vbproj.txt should be replaced by the name of the output file.
Script should be first to create a csv file. This file can be used to create a spreadsheet that calculates totals. The spreadsheet should use the @if(labelcolumn = "labeltext", value, 0) to produce a column that is only non-zero for comments, whitespace etc. Then sum them.
Also create the html file below. Open the HTML file in Amaya. Go to the top of the HTML code where there is a solid orange line on the left. set the width to zero and the color to white. Save.
Open up the HTML file in Microsoft Word. Add total info from spreadsheet to the top of the HTML file. Then save as Word.
The current .rb file does not create the word Analyze. Either modify the .rb file or change it manually afterwards.
log "c:\mylog.log"
Analyze "c:\Projects\Dod.CHCSII\Source.Net\DoD.CHCSII.BusinessEntities.sln"
SetReport html "c:\vbnet1.htm"
Report Summary
Analyze "c:\Projects\Dod.CHCSII\Source.Net\DoD.CHCSII.BusinessLayer.sln"
SetReport html "c:\vbnet1.htm"
Report Summary
Analyze "c:\Projects\Dod.CHCSII\Source.Net\Dod.Chcsii.Lgs.sln"
SetReport html "c:\vbnet1.htm"
Report Summary
Analyze "c:\Projects\Dod.CHCSII\Source.Net\DoD.CHCSII.Shared.sln"
SetReport html "c:\vbnet1.htm"
Report Summary
Analyze "c:\Projects\Dod.CHCSII\Source.Net\LGS\DoD.CHCSII.EnvironmentChanger\DoD.CHCSII.LGS.EnvironmentChanger.sln"
SetReport html "c:\vbnet1.htm"
Report Summary
Analyze "c:\Projects\Dod.CHCSII\Source.Net\LocalCache.sln"
SetReport html "c:\vbnet1.htm"
Report Summary
Analyze "c:\Projects\Dod.CHCSII\Source.Net\LocalcacheONLY.sln"
SetReport html "c:\vbnet1.htm"
Report Summary
Loading information below:
** Project Analyzer v7 Enterprise Edition site license **
Your keyword is: YVKJE-U2UCX
Installation instructions.
1. Download the latest Project Analyzer v7 full version from
http://www.aivosto.com/reg/proa7/download-full.html
Your download username is tf0309es and password lux765us
2. Unzip the download package to an empty directory.
3. Run project.exe. A splash screen with a magnifier glass appears.
Type 'OPEN'. There is no field for this, just type it.
A hidden field will appear. Type in your keyword and press OK.
The software displays a message when it has been unlocked.
If unlocking is not successful, you will see (Demo) in the main
window caption and the program will function in demo mode. In this case,
- use copy & paste to enter the key
- verify the splash screen displays an orange margin (not blue)
- the splash screen is the first dialog that appears in project.exe
Free updates. Your license includes free minor version updates within
the major version number v7. Check back on our web site to download the
latest versions. Always install new versions in a new directory, not
over your existing version. If you have trouble downloading or unlocking a minor update, request new installation instructions via the web site.
This is a site license. A site license covers any number of users in a
single organization within a radius of 3 miles (5 km). This area is
referred to as the Site.
In addition, employees of the organization are allowed to use the
Software outside the Site on their portable and home computers in either of the following cases: the employee either works solely at home, or the employee works at the Site a minimum of one day/week. Independent contractors of the organization may use the Software at the Site but not at other locations.
The site license allows use via a computer network, provided that
unlicensed use is not possible.
Unauthorized distribution of these instructions is a violation of
copyright. You can find the entire license terms in the documentation of the software.