<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/locjava/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 26 Sep 2015 14:22:05 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/locjava/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -5,7 +5,7 @@

 Download
 --------
-[JavaLOC.jar](http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/deploy/LOC.jar?rev=42 LOC.jar)  Version 1.0     4/4/2014
+Looking for the latest version? [Download JavaLOC.jar](https://sourceforge.net/projects/locjava/files/latest/download?source=files) (44.9 kB) 

 Instructions for Use
 --------------------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Sat, 26 Sep 2015 14:22:05 -0000</pubDate><guid>https://sourceforge.net2968d76fc97a705f645fee06ffbd6aa7015b3c30</guid></item><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -69,6 +69,7 @@
 The number of lines is computed as the number of terminal semicolons and right braces.

 (Semicolons within a &lt;tt&gt;for&lt;/tt&gt; statement are not counted).
+Comment statements are ignored.

 For example, the following code has a line count of 6.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Thu, 25 Sep 2014 14:29:09 -0000</pubDate><guid>https://sourceforge.nete289f7adcaca514fbe3a1768a14ba1970f637ea5</guid></item><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -1,10 +1,7 @@
-Lines of Code Counter
-=====================
+Java Lines of Code Counter
+==========================

-Purpose
--------
-
-The purpose of this application is to compute the size of a source code file by counting the "physical lines of code" in the file subject to some rules for omitting comments and blank lines.  The application is written in Java and has been tested under JRE 1.5 on Linux and Windows 7.
+This application computes the size of a Java source code file by counting the "logical lines of code."  The application is written in Java and has been tested under JRE 1.5 on Linux and Windows 7.

 Download
 --------
@@ -111,15 +108,20 @@
     
 ~~~~~~

+
 Creative Commons License
 ------------------------

 This work is licensed under a [Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.](http://replay.waybackmachine.org/20080704181011/http://creativecommons.org/licenses/by-nc-sa/3.0/)

+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+

 Join us
 -------
-Want to contribute to our project?  First, create an account then return to this page and  bookmark this project.   That will make you an "Observer" of the project.  Then send an email to the project administrator requesting to be involved.  We'll upgrade your member status as appropriate.  Thanks!
+Want to contribute to our project?  Send an email to the project administrator (below) requesting to be involved.  We'll upgrade your member status as appropriate.  Thanks!

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Sun, 06 Apr 2014 19:49:23 -0000</pubDate><guid>https://sourceforge.net8fcfff960974fff9fd6d0cd59315cdad7a165270</guid></item><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -6,20 +6,14 @@

 The purpose of this application is to compute the size of a source code file by counting the "physical lines of code" in the file subject to some rules for omitting comments and blank lines.  The application is written in Java and has been tested under JRE 1.5 on Linux and Windows 7.

-Creative Commons License
-------------------------
-
-This work is licensed under a [Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.](http://replay.waybackmachine.org/20080704181011/http://creativecommons.org/licenses/by-nc-sa/3.0/)
-
-
 Download
 --------
-[JavaLOC.jar)(http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/deploy/LOC.jar?rev=42 LOC.jar)  Version 1.0     4/4/2014
+[JavaLOC.jar](http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/deploy/LOC.jar?rev=42 LOC.jar)  Version 1.0     4/4/2014

 Instructions for Use
 --------------------

-If jar file associations were setup when you installed Sun's JVM, you can double-click on the JavaLOC.jar file to launch it.  Otherwise, from the DOS prompt issue:
+If jar file associations were setup when you installed Java, you can double-click on the JavaLOC.jar file to launch it.  Otherwise, from the command line issue:

     java -jar JavaLOC.jar

@@ -33,7 +27,6 @@

 Command Line Usage
 ------------------
-

 Count lines in a single file:

@@ -76,17 +69,29 @@

 Counting rules
 --------------
-The number of lines is computed as the number of terminal semi-colons and right braces.
+The number of lines is computed as the number of terminal semicolons and right braces.

-(Semi-colons with a &lt;tt&gt;for&lt;/tt&gt; statement are not counted).
+(Semicolons within a &lt;tt&gt;for&lt;/tt&gt; statement are not counted).

-Test Data File
---------------
-Here is the file we used as test data to verify the software:  
-[http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/systemtest/datafiles/LOCtestdata.txt?rev=42 LOCtestdata.txt]  
+For example, the following code has a line count of 6.

-The result is 19 lines including comments, or 7 lines without.
+~~~~~
+    void Snoopy()
+    {
+        int x = 0, y = 1;
+        x = x + 1; y = y + 3;
+        if (x == 10)
+        {
+            y = 0;
+        }
+    }    
+~~~~~ 
+
+There are four semicolons and two right braces, resulting in 6 lines.
+
+Note that the program does not actually parse the Java code, it does a simple text search to find semicolons and braces.  Consequently the file does not have to be valid Java code in order to produce a count.  The tool will produce a count for C code, psuedocode, or any plain text file.
+

 Icon
 ----
@@ -106,6 +111,12 @@
     
 ~~~~~~

+Creative Commons License
+------------------------
+
+This work is licensed under a [Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.](http://replay.waybackmachine.org/20080704181011/http://creativecommons.org/licenses/by-nc-sa/3.0/)
+
+
 Join us
 -------
 Want to contribute to our project?  First, create an account then return to this page and  bookmark this project.   That will make you an "Observer" of the project.  Then send an email to the project administrator requesting to be involved.  We'll upgrade your member status as appropriate.  Thanks!
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Sun, 06 Apr 2014 19:30:31 -0000</pubDate><guid>https://sourceforge.netbdd60ee9e8b3ed5d2c48970727ff46ce8e0cc1ea</guid></item><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -23,14 +23,13 @@

     java -jar JavaLOC.jar

-[[img src=JavaLOCcounts.png alt=Screenshot]]
-
 ![Screenshot](https://cdn.mediacru.sh/UGryfwykHdzx.png)

 Click the "Choose File" button to open a standard file chooser dialog and then navigate to the desired file.  When you select a file, the filename and the line count will appear in the display window.

-In the file chooser, you may select multiple files by Ctrl-clicking.
+In the file chooser, you may select multiple files by Ctrl-clicking.  The total count appears at the bottom.

+Remove the check mark if you don't want a file included in the total.

 Command Line Usage
 ------------------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Sun, 06 Apr 2014 19:05:16 -0000</pubDate><guid>https://sourceforge.net5367142c536b319355a845a3617181d887e84dfc</guid></item><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,4 +1,3 @@
-
 Lines of Code Counter
 =====================

@@ -15,24 +14,23 @@

 Download
 --------
-[http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/deploy/LOC.jar?rev=42 LOC.jar]  Version 3.0     4/7/2012
+[JavaLOC.jar)(http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/deploy/LOC.jar?rev=42 LOC.jar)  Version 1.0     4/4/2014

 Instructions for Use
 --------------------

-If jar file associations were setup when you installed Sun's JVM, you can double-click on the LOC.jar file to launch it.  Otherwise, from the DOS prompt issue:
+If jar file associations were setup when you installed Sun's JVM, you can double-click on the JavaLOC.jar file to launch it.  Otherwise, from the DOS prompt issue:

-    java -jar LOC.jar
+    java -jar JavaLOC.jar

-[[image:Swing_LOC_counter.png]]
+[[img src=JavaLOCcounts.png alt=Screenshot]]

-1) Click the "Choose File" button to open a standard file chooser dialog and then navigate to the desired file.  When you select a file, the filename and the line count will appear in the display window.
+![Screenshot](https://cdn.mediacru.sh/UGryfwykHdzx.png)
+
+Click the "Choose File" button to open a standard file chooser dialog and then navigate to the desired file.  When you select a file, the filename and the line count will appear in the display window.

 In the file chooser, you may select multiple files by Ctrl-clicking.

-2) Uncheck the check box if you don't want comments included in your line count.
-
-Limited drag-and-drop support.  If the application has the focus, you can drag files from elsewhere and drop them into the application window.

 Command Line Usage
 ------------------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Sun, 06 Apr 2014 19:02:04 -0000</pubDate><guid>https://sourceforge.netc1cc2b4012c0d382b63107722a94181b7f519b5d</guid></item><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,119 @@
-Welcome to your wiki!

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+Lines of Code Counter
+=====================

-The wiki uses [Markdown](/p/locjava/wiki/markdown_syntax/) syntax.
+Purpose
+-------
+
+The purpose of this application is to compute the size of a source code file by counting the "physical lines of code" in the file subject to some rules for omitting comments and blank lines.  The application is written in Java and has been tested under JRE 1.5 on Linux and Windows 7.
+
+Creative Commons License
+------------------------
+
+This work is licensed under a [Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.](http://replay.waybackmachine.org/20080704181011/http://creativecommons.org/licenses/by-nc-sa/3.0/)
+
+
+Download
+--------
+[http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/deploy/LOC.jar?rev=42 LOC.jar]  Version 3.0     4/7/2012
+
+Instructions for Use
+--------------------
+
+If jar file associations were setup when you installed Sun's JVM, you can double-click on the LOC.jar file to launch it.  Otherwise, from the DOS prompt issue:
+
+    java -jar LOC.jar
+
+[[image:Swing_LOC_counter.png]]
+
+1) Click the "Choose File" button to open a standard file chooser dialog and then navigate to the desired file.  When you select a file, the filename and the line count will appear in the display window.
+
+In the file chooser, you may select multiple files by Ctrl-clicking.
+
+2) Uncheck the check box if you don't want comments included in your line count.
+
+Limited drag-and-drop support.  If the application has the focus, you can drag files from elsewhere and drop them into the application window.
+
+Command Line Usage
+------------------
+
+
+Count lines in a single file:
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC &lt;i&gt;filename&lt;/i&gt;&lt;/tt&gt;
+
+
+Count lines for all files in a given directory: 
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC -d &lt;i&gt;directory&lt;/i&gt;&lt;/tt&gt;
+
+
+Count lines for all files in the current directory:
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC -d .&lt;/tt&gt;
+
+
+Count lines for all files in a directory and recurses into subdirectories (ignoring those starting with '.'):
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC -r -d &lt;i&gt;directory&lt;/i&gt;&lt;/tt&gt;
+
+ 
+
+Count lines for all files on the command line:
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC *file1* *file2*&lt;/tt&gt;
+
+Count lines for all files on the command line. *path* will be prefixed to every filename:
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC -p *path* *file1* *file2*&lt;/tt&gt;
+
+Count lines for filenames read from stdin:
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC&lt;/tt&gt;
+
+Count lines for filenames read from stdin. *path* will be prefixed to every filename:
+
+&lt;tt&gt;java -cp JavaLOC.jar textui.LOC -p *path*&lt;/tt&gt;
+ 
+
+
+Counting rules
+--------------
+The number of lines is computed as the number of terminal semi-colons and right braces.
+
+(Semi-colons with a &lt;tt&gt;for&lt;/tt&gt; statement are not counted).
+
+
+Test Data File
+--------------
+Here is the file we used as test data to verify the software:  
+[http://java.net/projects/loc-counter/sources/svn/content/trunk/LOCcounter/systemtest/datafiles/LOCtestdata.txt?rev=42 LOCtestdata.txt]  
+
+The result is 19 lines including comments, or 7 lines without.
+
+Icon
+----
+Here's an [icon](http://tinypic.com/r/103xs9i/7) you can use to associate with the application shortcut.
+
+Ant target
+----------
+Here's a sample Ant target for use in your build scripts.  You'll need to modify the classpath and arg line to suit your needs.
+
+~~~~~~
+    
+        
+                
+        
+    
+~~~~~~
+
+Join us
+-------
+Want to contribute to our project?  First, create an account then return to this page and  bookmark this project.   That will make you an "Observer" of the project.  Then send an email to the project administrator requesting to be involved.  We'll upgrade your member status as appropriate.  Thanks!
+
+

 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Sun, 06 Apr 2014 18:46:16 -0000</pubDate><guid>https://sourceforge.net3fee4e13e407f8a109b641e06673151f06d252d1</guid></item><item><title>Home modified by John Dalbey</title><link>https://sourceforge.net/p/locjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/locjava/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/jdalbey/"&gt;John Dalbey&lt;/a&gt; (admin)&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-53417b180594ca7fc2d16c4b" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dalbey</dc:creator><pubDate>Sun, 06 Apr 2014 16:04:41 -0000</pubDate><guid>https://sourceforge.netf5f6fb952bc33bb937afe268309eda9e2f939796</guid></item></channel></rss>