Objenesis version 1.1 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    objenesis  most recent diff


    version 1.1

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


      The objenesis Portfile 34841 2008-03-08 17:50:04Z blair macports.org $

      PortSystem 1.0

      Name: objenesis
      Version: 1.1
      Category: java
      Platform: darwin
      Maintainers: blair

      Description: Library for instantiating Java objects
      Long Description: It's pretty easy to instantiate objects in Java through standard reflection. However there are many cases where you need to go beyond what reflection provides. For example, if there's no public constructor, you want to bypass the constructor code, or set final fields. There are numerous clever (but fiddly) approaches to getting around this and this library provides a simple way to get at them.

      Homepage: http://code.google.com/p/objenesis/

      Master Sites: googlecode:${name}
      dist_subdir ${name}
      distname ${name}-${version}-bundle
      Checksums: md5 5b9de0d8916d54add7bc8ae80cee539f sha1 efb78dd59bb27114da41d23fba5c3ddc8d0a2102 rmd160 3bb9b1f12c1c471d3f40abd7047807637148b4bf
      extract.cmd jar
      extract.pre_args xf
      extract.post_args
      extract.suffix .jar

      worksrcdir .

      depends_lib bin:java:kaffe

      use_configure no

      build.cmd true

      destroot {
      set javadir ${destroot}${prefix}/share/java
      set docdir ${destroot}${prefix}/share/doc/${name}

      xinstall -d -m 755 ${javadir}
      xinstall -d -m 755 ${docdir}/api

      file copy ${workpath}/${name}-${version}.jar ${javadir}/${name}.jar
      file copy ${workpath}/LICENSE.txt ${docdir}/
      system "cd ${docdir}/api && jar xf ${workpath}/${name}-${version}-javadoc.jar"
      delete ${docdir}/api/META-INF
      }

    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/objenesis
      % sudo port install objenesis
      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 objenesis
      ---> Verifying checksum for objenesis
      ---> Extracting objenesis
      ---> Configuring objenesis
      ---> Building objenesis with target all
      ---> Staging objenesis into destroot
      ---> Installing objenesis
    - 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 objenesis with these commands:
      %  man objenesis
      % apropos objenesis
      % which objenesis
      % locate objenesis

     Where to find more information:

    Darwin Ports



    Lightbox this page.