[jsword-svn] jsword-support/tools/javancss/javancss21.41 s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Tue Aug 16 11:03:05 MST 2005


Update of /cvs/jsword/jsword-support/tools/javancss/javancss21.41
In directory www.crosswire.org:/tmp/cvs-serv29457/tools/javancss/javancss21.41

Added Files:
	README.TXT make_all_first javancss.dtd build.xml 
Log Message:
Upgrading jsword-support/tools

--- NEW FILE: build.xml ---
<?xml version="1.0"?>

<!-- =========================================================================================== -->
<!-- Ant build.xml for JavaNCSS.                                                                 -->
<!-- Please edit property JAVACC_HOME.                                                           -->
<!-- =========================================================================================== -->

<project name="javancss" default="javac" basedir=".">

   <property name="DESTINATION" value="classes"/>
   <property name="CLASSPATH"   value="${DESTINATION}:lib/ccl.jar:lib/jhbasic.jar:lib/javancss.jar"/>
   <property name="JAVACC_HOME" value="/usr/local/java/javacc"/>

   <target name="all" depends="clean,javacc,javac"/>

   <target name="javac">
      <mkdir  dir="${DESTINATION}"/>
      <javac srcdir     ="src"
             destdir    ="${DESTINATION}"
             classpath  ="${CLASSPATH}"
             debug      ="on"
             deprecation="on"
             optimize   ="off"
             excludes   ="**/RCS/*">
      </javac>
      <copy file="icons/javancssframe.gif"
            todir="${DESTINATION}/javancss"/>
   </target>

   <target name="javacc">
      <mkdir  dir="${DESTINATION}"/>
      <java classname="COM.sun.labs.javacc.Main"
            fork     ="yes"
            dir      ="${user.dir}/src/javancss">
         <classpath>
            <pathelement location="${JAVACC_HOME}/bin/lib/JavaCC.zip"/>
         </classpath>
         <arg value="Java1.1.jj"/>
      </java>
   </target>

   <target name="clean">
      <delete dir="${DESTINATION}"/>
      <mkdir  dir="${DESTINATION}"/>
   </target>

  <taskdef name="javancss" 
    classname="javancss.JavancssAntTask"
    classpath="${CLASSPATH}"/>

   <target name="javancss">
      <javancss srcdir="src"
                includes="**/*.java"
                generateReport="yes"/>
   </target>

	<target name="update_manifest" >
     <jar jarfile="lib/javancss.jar" update="true" >
       <manifest>
         <attribute name="Main-class" value="javancss.Main" />
         <attribute name="Class-Path" value="jhbasic.jar ccl.jar" />
       </manifest>
     </jar>
   </target>

</project>

--- NEW FILE: javancss.dtd ---
<?xml version="1.0"?>

<!ELEMENT  javancss     (date,time,packages?,objects?,functions?,ncss)>
<!ELEMENT  date         (#PCDATA)                                     >
<!ELEMENT  time         (#PCDATA)                                     >
<!ELEMENT  packages     (package*,total,table)                        >
<!ELEMENT  package      (name,classes,functions,ncss,javadocs,javadoc_lines,single_comment_lines,multi_comment_lines)>
<!ELEMENT  total        (classes,functions,ncss,javadocs)             >
<!ELEMENT  table        (tr*)                                         >
<!ELEMENT  tr           (td*)                                         >
<!ELEMENT  td           (#PCDATA)                                     >
<!ELEMENT  objects      (object*,averages,ncss)                       >
<!ELEMENT  object       (ncss,functions,classes,javadocs)             >
<!ELEMENT  classes      (#PCDATA)                                     >
<!ELEMENT  functions    (#PCDATA|(function*))                         >
<!ELEMENT  function     (name,ncss,ccn,javadocs)                      >
<!ELEMENT  ncss         (#PCDATA)                                     >
<!ELEMENT  ccn          (#PCDATA)                                     >
<!ELEMENT  javadocs     (#PCDATA)                                     >

--- NEW FILE: README.TXT ---
JavaNCSS

   
A Source Measurement Suite for Java

URL
   http://www.kclee.com/clemens/java/javancss/

DESCRIPTION
   Ever wondered how many lines of code or how many classes there
   are in the Sun JDK? Curious about the size of your own 
   projects - or do you want to keep track of your work-progress.
   That's what JavaNCSS is for.

   JavaNCSS is a simple command line utility which measures two
   standard source code metrics for the Java programming
   language. The metrics are collected globally, for each class
   and/or for each function.

FEATURES
   - Metrics can be applied to global-, class-, or function-level.
   - Non Commenting Source Statements (NCSS).
   - Cyclomatic Complexity Number (McCabe metric).
   - Packages, classes, functions and inner classes are counted.
   - Number of formal Javadoc comments per class and method.
   - Average values are calculated.
   - Command line driven.
   - A GUI is provided for better output browsing as well as the
     integration of JavaNCSS in a project manager and class
     browser named Jacob (http://www.kclee.com/clemens/jacob/) for
     easy selection of input source files.
   - XML output (optional).
   - XSLT stylesheets provided for further generation of HTML, 
     and SVG reports and as a basis for your own custom 
     reports.
   - Ant task (written by Steve Jernigan).
   - 100% Pure Java.
   - Free software (GNU GPL).

SYSTEM REQUIREMENTS
   - Java JDK 1.1.6 or higher
   - Swing 1.0.2 or higher if you want to see the output in a gui 
     window. Otherwise you can use JavaNCSS without Swing.
   
INSTALLATION
   See file javancss/doc/index.html

LICENSE
   GNU General Public License

VERSION
   21.41

DATE
   09/06/2002

AUTHOR
   Chr. Clemens Lee, <clemens at kclee.com>

--- NEW FILE: make_all_first ---
all_first : src/javancss/JavaParser.java

src/javancss/JavaParser.java : src/javancss/Java1.1.jj classes/JITFix.class
	cd src/javancss; javacc Java1.1.jj
	#echo java -classpath $(CLASSPATH) JITFix

classes/JITFix.class : src/JITFix.java
	#echo javac -d classes -classpath $(CLASSPATH) src/JITFix.java

check : all
	java -classpath $(CLASSPATH) javancss.Main -check




More information about the jsword-svn mailing list