Permalink
Browse files

Added crap4j to the build

  • Loading branch information...
1 parent 5a03aba commit d8289ce195232fbe47eb18f766a7aece652dbb64 unclebob committed Dec 18, 2008
Showing with 1,947 additions and 164 deletions.
  1. +1 −0 .gitignore
  2. +39 −161 FitNesse.iws
  3. +47 −3 build.xml
  4. +15 −0 crap4j/RELEASE_NOTES.txt
  5. BIN crap4j/crap4j_ant_latest.jar
  6. +66 −0 crap4j/doc/example_build.xml
  7. +25 −0 crap4j/doc/projectConfig.sample
  8. BIN crap4j/lib/args4j-2.0.1.jar
  9. BIN crap4j/lib/asmlib.jar
  10. +53 −0 crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/META-INF/MANIFEST.MF
  11. +325 −0 crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/about.html
  12. +1 −0 crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/about.mappings
  13. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/com.agitar.eclipse.api.jar
  14. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/com.agitar.mockingbird.jar
  15. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/com.agitar.testrunner.jar
  16. +55 −0 crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/config/superrunner_ant.xml
  17. +20 −0 crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/config/superrunner_import.xml
  18. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ant-junit.jar
  19. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ant-launcher.jar
  20. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ant.jar
  21. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/commons-codec-1.3.jar
  22. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/commons-httpclient-3.0.1.jar
  23. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/commons-logging.jar
  24. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/cglib-nodep-2.1_3.jar
  25. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/commons-beanutils-1.6.jar
  26. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/commons-logging-1.0.4.jar
  27. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/jakarta-oro-2.0.8.jar
  28. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/jdom.jar
  29. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/mockejb.jar
  30. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/mockrunner-0.3.8.jar
  31. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/nekohtml.jar
  32. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/org.agitar.mock.jar
  33. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext/org.agitar.mock5.jar
  34. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/junit.jar
  35. BIN crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/lib/xalan.jar
  36. +20 −0 crap4j/lib/com.agitar.eclipse.api_4.2.0.401405/plugin.xml
  37. +42 −0 crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/META-INF/MANIFEST.MF
  38. +325 −0 crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/about.html
  39. +1 −0 crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/about.mappings
  40. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/com.agitar.check.jar
  41. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/com.agitar.common.jar
  42. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/com.agitar.coverage.jar
  43. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/com.agitar.eclipse.core.jar
  44. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/com.agitar.eclipse.coverage.jar
  45. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/com.agitar.eclipse.project.mock.jar
  46. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/icons/coverage_summary.gif
  47. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/icons/d_goto.gif
  48. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/icons/d_link.gif
  49. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/icons/goto.gif
  50. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/icons/link.gif
  51. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/MD5.dll
  52. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/MD5.so
  53. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/asm-tree.jar
  54. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/asm.jar
  55. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/ezlicgen30.jar
  56. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/ezlicrun30.jar
  57. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/hsqldb.jar
  58. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/ils10.jar
  59. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/ilsadmin10.jar
  60. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/ilsclient10.jar
  61. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/ilscrypt10.jar
  62. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/ilsdb10.jar
  63. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/jvmdetector.jar
  64. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/libmachineid.so
  65. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/libxxxmachineid.so
  66. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/machineid.dll
  67. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/wdortl20.jar
  68. BIN crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/lib/xxxmachineid.dll
  69. +8 −0 crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/plugin.properties
  70. +217 −0 crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/plugin.xml
  71. BIN crap4j/lib/org.crap4j.jar
  72. BIN crap4j/lib/retroweaver-all-2.0.2.jar
  73. +32 −0 crap4j/licenses/args4j_license.txt
  74. +28 −0 crap4j/licenses/asm_license.txt
  75. +328 −0 crap4j/licenses/crap4j_license.html
  76. +79 −0 crap4j/licenses/eclipse_license.txt
  77. +220 −0 crap4j/licenses/junit_factory_license.txt
View
@@ -2,6 +2,7 @@ FitNesseRoot/ErrorLogs/
FitNesseRoot/RecentChanges/
src/fitnesse/FitNesseVersion.java
test-results/
+agitar/
dist/
classes/
.svn
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -11,9 +11,15 @@
<property name="fitnesseRootZip" value="FitNesseRoot.zip"/>
<property name="zipDir" location="dist/fitnesse"/>
<property name="results.dir" location="test-results"/>
+ <property name="CRAP4J_HOME" value="crap4j"/>
- <property name="cobertura.root" value="${lib}/cobertura-1.8"/>
- <property name="cobertura.dir" value="${results.dir}/cobertura"/>
+ <taskdef name="crap4j" classname="org.crap4j.anttask.Crap4jAntTask">
+ <classpath>
+ <fileset dir="${CRAP4J_HOME}/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
<path id="classpath">
<pathelement path="classes"/>
@@ -115,7 +121,6 @@
<target name="compile" depends="init, stamp-version" description="compile the source (make)">
<javac srcdir="src" destdir="classes" classpathref="classpath" debug="true"/>
- <javac srcdir="srcFitServerTests" destdir="classes" classpathref="classpath" debug="true"/>
<copy file="extra/ant/tasks.properties" todir="classes"/>
</target>
@@ -181,4 +186,43 @@
<target name="release" depends="testbuild, build_distribution"/>
+ <target name="run-crap4j" depends="compile">
+ <crap4j projectdir="."
+ outputDir="test-results/crap4j"
+ dontTest="false" debug="false">
+
+ <classes>
+ <!-- put the project's class directories here. These are the classes you want crap numbers for -->
+ <pathElement location="classes"/>
+ </classes>
+
+ <srces>
+ <!-- The project's src folders -->
+ <pathElement location="src"/>
+ </srces>
+
+ <testClasses>
+ <!-- The project's test classes.
+ Note, separating it from the project classes makes life so much easier
+ but if you didn't, then you probably just want to repeat the classDir entry here -->
+ <pathElement location="classes"/>
+ </testClasses>
+
+ <libClasspath>
+ <!-- Put the dependent paths and libraries here.
+ This is for stuff necessary to your project, but not stuff you want analyzed -->
+ <fileset dir="lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <!-- if you get errors loading any agitar classes, like the mock classes, add this entry -->
+ <!--
+ <fileset dir="${CRAP4J_HOME}/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext">
+ <include name="**/*.jar" />
+ </fileset>
+ -->
+ </libClasspath>
+
+ </crap4j>
+ </target>
+
</project>
View
@@ -0,0 +1,15 @@
+Crap4j Release Notes
+
+
+Version 1.1.6
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
+Crap-o-rama updated to show historical trends for crap metrics
+Crap-o-rama updated to allow tagging of projects, and display of tagged projects
+Ant task behaves better around filesets for class list
+Ant task excludes class lists for the test task. New recommendation is to use superrunner task independently.
+Better filtering on Test classes to remove them from crap results when there are ambiguous test output directories specified.
+Added more feedback to user that crap4j is running. Now when the action is started in Eclipse, there is a dialog that notifies the user that running has commenced.
+Fixed weird intermittent selection problem for enabling eclipse action when selecting projects.
+Added more debugging to AnnotationVisitor, and another guard against NPEs.
+Set precision on global avg in generated image.
+
Binary file not shown.
@@ -0,0 +1,66 @@
+<?xml version="1.0" ?>
+<project name="crap4j" default="run-crap4j" basedir="..">
+
+ <!-- #1 redefine crap4j_home to point to the absolute directory where you unzipped crap4j -->
+ <property name="CRAP4J_HOME" value="/Users/bobevans/Documents/projects/crap4j/org.crap4j/dist/crap4j"/>
+
+ <!-- Define the Crap4j ant task -->
+ <taskdef name="crap4j" classname="org.crap4j.anttask.Crap4jAntTask" >
+ <classpath>
+ <fileset dir="${CRAP4J_HOME}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <!-- #2 Setup your project base directory. In most cases, it can just be basedir.
+ The following is a fancy version -->
+ <!-- Use of ${project.dir.crap4j} allows for the resolution of relative paths
+ even when this file is imported in another build file -->
+ <dirname file="${ant.file.crap4j}" property="import.dir.crap4j" />
+ <condition property="my.project.root.dir" value="${import.dir.crap4j}/.." else="${basedir}">
+ <isset property="import.dir.crap4j" />
+ </condition>
+
+ <!-- #3 Use crap4j on the project -->
+ <target name="run-crap4j">
+ <crap4j projectdir="${my.project.root.dir}"
+ outputDir="agitar/reports/crap4j"
+ dontTest="false" debug="false">
+
+ <classes>
+ <!-- put the project's class directories here. These are the classes you want crap numbers for -->
+ <pathElement location="${my.project.root.dir}/bin" />
+ </classes>
+
+ <srces>
+ <!-- The project's src folders -->
+ <pathElement location="${my.project.root.dir}/src" />
+ </srces>
+
+ <testClasses>
+ <!-- The project's test classes.
+ Note, separating it from the project classes makes life so much easier
+ but if you didn't, then you probably just want to repeat the classDir entry here -->
+ <pathElement location="${my.project.root.dir}/test_bin" />
+ <pathElement location="${my.project.root.dir}/integration_tests_bin" />
+ <pathElement location="${my.project.root.dir}/agitar/test_bin" />
+ </testClasses>
+
+ <libClasspath>
+ <!-- Put the dependent paths and libraries here.
+ This is for stuff necessary to your project, but not stuff you want analyzed -->
+ <fileset dir="${my.project.root.dir}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <!-- if you get errors loading any agitar classes, like the mock classes, add this entry -->
+ <!--
+ <fileset dir="${CRAP4J_HOME}/lib/com.agitar.eclipse.api_4.2.0.401405/lib/ext">
+ <include name="**/*.jar" />
+ </fileset>
+ -->
+ </libClasspath>
+
+ </crap4j>
+ </target>
+</project>
@@ -0,0 +1,25 @@
+# This is an example project configuration file that runs crap4j on itself.
+
+# Root directory of the project. Any relative paths for the other
+# parameters are made relative to this.
+#projectDir=c:\Documents and Settings\Agitar\My Documents\crap4j
+projectDir=/Users/bobevans/Documents/projects/svnworkspace/crap4j
+
+# The directory where reports will be sent.
+# If unspecified, this defaults to <projectDir>/agitar/reports/crap4j.
+outputDir=
+
+# NOTE: Use the platform-specific path separators whenever there are
+# multiple directories.
+
+# The classpath of libraries used by the project.
+libClasspaths=dist/crap4j/lib/asm-xml-3.0.jar:dist/crap4j/lib/asm-util-3.0.jar:dist/crap4j/lib/asm-tree-3.0.jar:dist/crap4j/lib/asm-commons-3.0.jar:dist/crap4j/lib/asm-analysis-3.0.jar:dist/crap4j/lib/asm-3.0.jar:dist/crap4j/lib/args4j-2.0.1.jar:dist/crap4j/lib/com.agitar.eclipse.coverage_4.2.0.401405/com.agitar.coverage.jar
+
+# Directories containing the project's test class files.
+testClassDirs=test_bin:integration_tests_bin:agitar/test_bin
+
+# Directories containing project's class files, i.e., the classes to be analyzed.
+classDirs=bin
+
+# Directories containing the project's source files, i.e., the source files to be analyzed.
+sourceDirs=src
View
Binary file not shown.
View
Binary file not shown.
@@ -0,0 +1,53 @@
+Manifest-Version: 1.0
+Ant-Version: Apache Ant 1.6.5
+Created-By: 1.5.0_10-b03 (Sun Microsystems Inc.)
+Bundle-Name: Agitar's public API Plug-in
+Bundle-SymbolicName: com.agitar.eclipse.api; singleton=true
+Bundle-Localization: plugin
+Bundle-Activator: com.agitar.eclipse.api.APIPlugin
+Provide-Package: com.agitar.eclipse.api,com.agitar.eclipse.api.quickfi
+ x,com.agitar.eclipse.api.variable,com.agitar.eclipse.api.runner,com.a
+ gitar.lib,org.apache.tools.ant.taskdefs.rmic,org.apache.commons.httpc
+ lient.params,org.apache.commons.httpclient.auth,com.agitar.testrunner
+ .parser,org.apache.commons.httpclient.methods.multipart,org.apache.to
+ ols.ant.taskdefs.cvslib,org.apache.tools.ant.filters,org.apache.tools
+ .ant.types.selectors,org.apache.commons.httpclient.util,junit.runner,
+ org.apache.tools.ant.types.selectors.modifiedselector,org.apache.tool
+ s.ant.util,org.apache.tools.zip,com.agitar.lib.mockingbird.java.io,or
+ g.apache.tools.ant.helper,org.apache.commons.codec,org.apache.xalan.x
+ path,junit.awtui,org.apache.tools.ant.filters.util,com.agitar.lib.moc
+ kingbird.tape,org.apache.tools.tar,org.apache.xalan.xslt,org.apache.t
+ ools.ant,com.agitar.lib.mockingbird.invocation,org.apache.tools.ant.t
+ askdefs.email,com.agitar.lib.junit,com.agitar.lib.mockingbird.java.ut
+ il,com.agitar.literunner,user.agitar.invocation,junit.swingui,org.apa
+ che.commons.codec.net,org.apache.tools.mail,com.agitar.lib.intercepto
+ r,org.apache.tools.ant.util.facade,org.apache.xalan.xslt.extensions,o
+ rg.apache.tools.ant.taskdefs.condition,org.apache.tools.ant.taskdefs,
+ org.apache.tools.ant.types,org.apache.xalan.xslt.trace,org.apache.com
+ mons.httpclient.protocol,com.agitar.testrunner,org.apache.commons.cod
+ ec.digest,com.agitar.lib.mockingbird,org.apache.tools.ant.util.regexp
+ ,org.apache.commons.logging.impl,org.apache.tools.ant.launch,org.apac
+ he.tools.bzip2,org.apache.commons.httpclient.cookie,org.apache.common
+ s.httpclient.methods,com.agitar.instrument,org.apache.tools.ant.taskd
+ efs.compilers,org.apache.tools.ant.types.mappers,org.apache.xalan.xpa
+ th.dtm,com.agitar.concretemock,org.apache.tools.ant.types.resolver,or
+ g.apache.commons.codec.binary,org.apache.xalan.xpath.res,org.apache.t
+ ools.ant.taskdefs.optional.junit,junit.extensions,org.apache.tools.an
+ t.loader,org.apache.xalan.xslt.client,org.apache.xalan.xpath.xdom,org
+ .apache.commons.logging,junit.textui,org.apache.commons.httpclient,or
+ g.apache.xalan.xpath.xml,com.agitar.mockingbird.instrumenter,org.apac
+ he.tools.ant.input,com.agitar.junit.runner,org.apache.tools.ant.liste
+ ner,org.apache.xalan.xslt.res,junit.framework,org.apache.commons.code
+ c.language
+Eclipse-LazyStart: false
+Bundle-Version: 4.2.0.401405
+Bundle-Vendor: Agitar Software
+Bundle-ClassPath: com.agitar.eclipse.api.jar,com.agitar.mockingbird.ja
+ r,com.agitar.testrunner.jar,lib/ant-junit.jar,lib/ant-launcher.jar,li
+ b/ant.jar,lib/commons-codec-1.3.jar,lib/commons-httpclient-3.0.1.jar,
+ lib/commons-logging.jar,lib/junit.jar,lib/xalan.jar
+Require-Bundle: org.eclipse.jdt.core,org.eclipse.core.runtime,org.ecli
+ pse.core.resources,org.eclipse.ui.workbench,org.eclipse.jdt.ui,org.ec
+ lipse.jface.text,org.eclipse.swt,org.eclipse.jface,org.eclipse.debug.
+ core,com.agitar.eclipse.coverage;reprovide=true
+
Oops, something went wrong.

0 comments on commit d8289ce

Please sign in to comment.