Download and Install struts version 1.2.7 on Mac OS X
Tuesday the 2nd of December, 2008

    version 1.2.7

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



      # $Id: Portfile 35275 2008-03-23 15:54:42Z jberry macports.org $

      PortSystem 1.0

      Name: struts
      Version: 1.2.7

      Category: java
      Maintainers: jberry openmaintainer
      Platform: darwin

      Description: Apache Struts Framework.
      Long Description: Struts is a framework for writing Java web applications, based on the model-view-controller paradigm.
      Homepage: http://struts.apache.org/

      distname ${name}-${version}-src
      master_sites http://archive.apache.org/dist/struts/struts-${version}/
      #master_sites apache:struts/source/
      checksums md5 c6665758e2a3345d307a9b975b030543

      depends_build bin:ant:apache-ant
      depends_lib bin:java:kaffe port:commons-beanutils port:commons-collections port:commons-digester port:commons-fileupload port:commons-lang port:commons-logging port:commons-validator port:jakarta-oro port:servlet23-api port:antlr port:jakarta-taglibs-standard-11

      use_configure no

      set javaLibs ${prefix}/share/java

      post-extract {
      file mkdir ${worksrcpath}/contrib ${worksrcpath}/lib
      }

      build {
      # Build Struts
      system "cd ${worksrcpath} && CLASSPATH=${javaLibs}/commons-digester-rss.jar ant dist -Dcommons-beanutils.jar=${javaLibs}/commons-beanutils.jar -Dcommons-collections.jar=${javaLibs}/commons-collections.jar -Dcommons-digester.jar=${javaLibs}/commons-digester.jar -Dcommons-fileupload.jar=${javaLibs}/commons-fileupload.jar -Dcommons-lang.jar=${javaLibs}/commons-lang.jar -Dcommons-logging.jar=${javaLibs}/commons-logging.jar -Dcommons-validator.jar=${javaLibs}/commons-validator.jar -Djakarta-oro.jar=${javaLibs}/jakarta-oro.jar -Dservlet.jar=${javaLibs}/servlet23-api.jar -Dantlr.jar=${javaLibs}/antlr.jar "

      # Extract tld files from standard.jar, needed by struts-el
      set tld_dir ${workpath}/tld
      file mkdir ${tld_dir}
      system "cd ${tld_dir} && jar xf ${javaLibs}/standard.jar META-INF"

      # Build Struts-EL
      system "cd ${worksrcpath}/contrib/struts-el && ant dist -Dservlet.jar=${javaLibs}/servlet23-api.jar -Djstl.tld.dir=${tld_dir}/META-INF -Djstl.jar=${javaLibs}/jstl.jar -Djstl-standard.jar=${javaLibs}/standard.jar -Dcommons-beanutils.jar=${javaLibs}/commons-beanutils.jar "
      }

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/java
      file copy ${worksrcpath}/dist ${destroot}${prefix}/share/java/${name}
      xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}/contrib
      file copy ${worksrcpath}/contrib/struts-el/dist ${destroot}${prefix}/share/java/${name}/contrib/struts-el
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.