Download and Install cobertura version 1.6 on Mac OS X
Friday the 25th of July, 2008

    cobertura  most recent diff


      View the most recent changes for the cobertura port at: cobertura.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for cobertura.
      The raw portfile for cobertura 1.6 is located here:
      http://cobertura.darwinports.com/dports/java/cobertura/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/cobertura
      Google
      Web Darwinports.com



      # $Id: Portfile 20315 2006-11-01 22:23:03Z blair macports.org $

      PortSystem 1.0

      Name: cobertura
      Version: 1.6
      Category: java devel
      Platform: darwin
      Maintainers: dglo icecube.wisc.edu
      Description: Java code coverage tool
      Long Description: Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage.

      Homepage: http://cobertura.sourceforge.net/
      master_sites sourceforge
      distname ${name}-${version}-src
      checksums md5 3c59d364e0a729eb1b4a254963eb5751
      use_zip yes

      depends_build port:junit bin:ant:apache-ant port:objectweb-asm port:javancss
      depends_lib bin:java:kaffe
      depends_run port:junit

      worksrcdir ${name}-${version}

      use_configure no

      build.cmd ant
      build.target jar javadoc

      test.run yes
      test.cmd ant
      test.env CLASSPATH=${prefix}/share/java/junit.jar
      test.target test

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/java ${destroot}${prefix}/share/doc
      xinstall -m 644 ${worksrcpath}/${name}.jar ${destroot}${prefix}/share/java/${name}.jar
      file copy ${worksrcpath}/build/api ${destroot}${prefix}/share/doc/${name}
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/cobertura
      % sudo port install cobertura
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching cobertura
      ---> Verifying checksum for cobertura
      ---> Extracting cobertura
      ---> Configuring cobertura
      ---> Building cobertura with target all
      ---> Staging cobertura into destroot
      ---> Installing cobertura
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using cobertura with these commands:
      %  man cobertura
      % apropos cobertura
      % which cobertura
      % locate cobertura

     Where to find more information:

    Darwin Ports



    image test