Name: Anonymous 2011-01-07 9:53
My Tabulator counts the lines of code, comments, whitespace in a java file.
Usage:
java Tabulator ./SomeCode.java
output:
fname, #code, #comments, #whitespace, #total
SomeCode.java, 56, 10, 15, 81
My professor wants me to apply this to a directory.
So: java Tabulator .
Would create a text file with all the statistics.
She said to use make to automate the process but after doing some research I found that java can handle the automation alone.
See the DirList example:
http://www.tutorialspoint.com/java/java_file_class.htm
TL;DR Is Make or pure Java better at automating a line counting program?
Usage:
java Tabulator ./SomeCode.java
output:
fname, #code, #comments, #whitespace, #total
SomeCode.java, 56, 10, 15, 81
My professor wants me to apply this to a directory.
So: java Tabulator .
Would create a text file with all the statistics.
She said to use make to automate the process but after doing some research I found that java can handle the automation alone.
See the DirList example:
http://www.tutorialspoint.com/java/java_file_class.htm
TL;DR Is Make or pure Java better at automating a line counting program?