Forrest
  1. Forrest
  2. FOR-905

Recent change in cygwin appears to prevent the classpath for loop in the forrest command from working

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9
    • Component/s: Core operations
    • Labels:
      None
    • Urgency:
      Normal
    • Other Info:
      Patch available

      Description

      I recently upgraded Cygwin on a Windows/2000
      Professional machine to:

      bash-3.1$ uname -a
      CYGWIN_NT-5.0 phoenix 1.5.20(0.156/4/2) 2006-07-01
      02:22 i686 Cygwin

      bash-3.1$ cygpath --version
      cygpath (cygwin) 1.42
      Path Conversion Utility
      Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004,
      2005 Red Hat, Inc.
      Compiled on Jul 1 2006

      bash-3.1$ bash --version
      GNU bash, version 3.1.17(6)-release (i686-pc-cygwin)
      Copyright (C) 2005 Free Software Foundation, Inc.

      Forrest stopped working and gave the following error.

      bash-3.1$ pwd
      /cygdrive/c/src/forrest/site-author
      bash-3.1$ echo $FORREST_HOME
      C:\src\forrest
      bash-3.1$ forrest
      Apache Forrest. Run 'forrest -projecthelp' to list
      options

      Buildfile: C:\src\forrest\main\forrest.build.xml

      BUILD FAILED
      Target
      `c:/src/forrest/lib/endorsed/jakarta-regexp-1.4.jar'
      does not exist in this project.

      Total time: 1 second

      After investigating, it seems that the loop populating
      the CLASSPATH was not being executed.

      It appears that the bash shell no longer understands

      C:\src\forrest/lib/endorsed/*.jar
      1. forrest-sh.patch
        0.6 kB
        Mark Eggers

        Activity

        Hide
        Mark Eggers added a comment -
        Patch to handle apparent change in Cygwin's behavior
        Show
        Mark Eggers added a comment - Patch to handle apparent change in Cygwin's behavior
        Hide
        Gavin added a comment -
        Someone who uses Forrest with Cygwin should try this.

        In addition, may not be relevent but I got this in an email :-

        <quote>...but as I understand it, Cygwin recently changed the default for how it handles line endings. This caused a lot of scripts that I had which contained DOS line endings to break (even blank lines caused "syntax error:
        unexpected end of file"), as well as other problems that didn't seem to go away even after converting my line endings to unix style. I got the problem to disappear (without ever really understanding it) by adding a system variable called "SHELLOPTS" with the value "igncr"...</quote>

        Quote was by Steve Strobel.

        Gav...
        Show
        Gavin added a comment - Someone who uses Forrest with Cygwin should try this. In addition, may not be relevent but I got this in an email :- <quote>...but as I understand it, Cygwin recently changed the default for how it handles line endings. This caused a lot of scripts that I had which contained DOS line endings to break (even blank lines caused "syntax error: unexpected end of file"), as well as other problems that didn't seem to go away even after converting my line endings to unix style. I got the problem to disappear (without ever really understanding it) by adding a system variable called "SHELLOPTS" with the value "igncr"...</quote> Quote was by Steve Strobel. Gav...
        Hide
        Doron Cohen added a comment -
        Thanks for this patch - just wanted to let you know that it was helpful!

        After upgrading from Forrest 0.7 to 0.8, running Forrest for building Lucene Java docs failed with:
           Target `../apache-forrest-0.8/lib/endorsed/jakarta-regexp-1.4.jar' does not exist in this project.

        Applying this patch solved the problem.

        Thanks.
        Doron
        Show
        Doron Cohen added a comment - Thanks for this patch - just wanted to let you know that it was helpful! After upgrading from Forrest 0.7 to 0.8, running Forrest for building Lucene Java docs failed with:    Target `../apache-forrest-0.8/lib/endorsed/jakarta-regexp-1.4.jar' does not exist in this project. Applying this patch solved the problem. Thanks. Doron
        Hide
        Ross Gardler added a comment -
        Applied with thanks
        Show
        Ross Gardler added a comment - Applied with thanks

          People

          • Assignee:
            Ross Gardler
            Reporter:
            Mark Eggers
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development