Download and Install checkstyle version 4.3 on Mac OS X
Thursday the 7th of August, 2008

    checkstyle  most recent diff


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



      # $Id: Portfile 21866 2007-02-10 19:55:41Z markd macports.org $

      PortSystem 1.0

      Name: checkstyle
      Version: 4.3
      Category: java lang
      Platform: darwin
      Maintainers: dglo icecube.wisc.edu
      Description: CheckStyle is a Java source code analyzer
      Long Description: Checkstyle is a Java source code analyzer. It automates the process of checking Java code, and can be made to support almost any coding standard. It can also find class design problems, duplicate code, or bug patterns like double checked locking.

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

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

      worksrcdir ${name}-src-${version}

      use_configure no

      build.cmd ant
      build.target build.bindist
      build.dir ${worksrcpath}
      build.env CLASSPATH=${prefix}/share/java/junit.jar

      destroot {
      xinstall -m 755 ${filespath}/${name} ${destroot}${prefix}/bin
      reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/${name}
      xinstall -m 755 -d ${destroot}${prefix}/share/java ${destroot}${prefix}/share/doc
      xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-all-${version}.jar ${destroot}${prefix}/share/java/${name}.jar
      xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-optional-${version}.jar ${destroot}${prefix}/share/java/${name}-optional.jar
      file copy ${worksrcpath}/target/docs ${destroot}${prefix}/share/doc/${name}
      file mkdir ${destroot}${prefix}/share/${name}/
      foreach xsl [glob -nocomplain ${worksrcpath}/contrib/*.xsl] {
      file copy ${xsl} ${destroot}${prefix}/share/${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/checkstyle
      % sudo port install checkstyle
      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 checkstyle
      ---> Verifying checksum for checkstyle
      ---> Extracting checkstyle
      ---> Configuring checkstyle
      ---> Building checkstyle with target all
      ---> Staging checkstyle into destroot
      ---> Installing checkstyle
    - 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 checkstyle with these commands:
      %  man checkstyle
      % apropos checkstyle
      % which checkstyle
      % locate checkstyle

     Where to find more information:

    Darwin Ports



    image test