Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.6
    • Component/s: Compile
    • Labels:
      None
    • Environment:
      Windows 98 / JDK 1.4.1

      Description

      There are a lot of NT specifics in Forrest batch files (@setlocal, %~dp0...) that prevent them to be run on Windows 98.

      It would be nice to have this compatibility :-)

      The most difficult part may be to emulate the setpwdvar.bat for NT. Here is a code snippet that does the trick :

      @echo off
      echo @prompt set PWD=$p$_ > _temp_A.bat
      %comspec% /e:2048 /c _temp_A.bat > _temp_B.bat
      call _temp_B.bat
      del _temp_?.bat

      Hope this helps.

      Cheers,

      p.b.

        Activity

        Dave Brondsema made changes -
        Status Assigned Resolved
        Resolution Fixed
        Hide
        Dave Brondsema added a comment -
        Well I finally committed this. Please check to make sure it works. It works for me on WinXP, but I have no Win9x computers to test it on.

        I did not apply the patch chunk that included "%ANT_HOME%\nul" because that broke it for me.

        If possible, try testing where forrest is on a different drive than the project you are building. I added /d to the 'cd' commands so this would work in WinXP. I don't know how Win9x handles this.
        Show
        Dave Brondsema added a comment - Well I finally committed this. Please check to make sure it works. It works for me on WinXP, but I have no Win9x computers to test it on. I did not apply the patch chunk that included "%ANT_HOME%\nul" because that broke it for me. If possible, try testing where forrest is on a different drive than the project you are building. I added /d to the 'cd' commands so this would work in WinXP. I don't know how Win9x handles this.
        Hide
        Pierrick Brihaye added a comment -
        Indeed. However, see the 5 lines at the beginning of this issue.

        p.b.
        Show
        Pierrick Brihaye added a comment - Indeed. However, see the 5 lines at the beginning of this issue. p.b.
        Hide
        Nicola Ken Barozzi added a comment -
        It looks like setpwdvar98.bat is not in the patch.
        Show
        Nicola Ken Barozzi added a comment - It looks like setpwdvar98.bat is not in the patch.
        David Crossley made changes -
        Component/s shbat distribution - Forrest CLI Building Forrest
        Juan Jose Pablos made changes -
        issue.field.fixfor 0.6
        Summary Use on Windows 98 [PATCH] Use on Windows 98
        Dave Brondsema made changes -
        Assignee brondsem
        Pierrick Brihaye made changes -
        Field Original Value New Value
        Attachment forrest-patch-win98.txt
        Hide
        Pierrick Brihaye added a comment -
        src/core/bin/setpwdvar98.bat contains the code described above.

        I hope that I didn't break the XP compatibility :-)

        p.b.
        Show
        Pierrick Brihaye added a comment - src/core/bin/setpwdvar98.bat contains the code described above. I hope that I didn't break the XP compatibility :-) p.b.
        Hide
        Pierrick Brihaye added a comment -
        OK. I'll try to provide you some patches for forrest.bat and forrestant.bat. I'm afraid we'll have to use an iterative method until everything is completed because it is a kind of PITA :-)

        However, having rewritten my bat files, I can say that Forrest definitely runs on Win 98.

        Stay tuned.

        p.b.

        Show
        Pierrick Brihaye added a comment - OK. I'll try to provide you some patches for forrest.bat and forrestant.bat. I'm afraid we'll have to use an iterative method until everything is completed because it is a kind of PITA :-) However, having rewritten my bat files, I can say that Forrest definitely runs on Win 98. Stay tuned. p.b.
        Hide
        Dave Brondsema added a comment -
        I have used the batch files only on windows 2000 & xp. AFAIK, no other developers use windows much, if any.

        I don't have a windows 95/98/ME computer available to me. If you can get a set of batch files (or patches to existing ones) that work in win98, I will include them.
        Show
        Dave Brondsema added a comment - I have used the batch files only on windows 2000 & xp. AFAIK, no other developers use windows much, if any. I don't have a windows 95/98/ME computer available to me. If you can get a set of batch files (or patches to existing ones) that work in win98, I will include them.
        Pierrick Brihaye created issue -

          People

          • Assignee:
            Dave Brondsema
            Reporter:
            Pierrick Brihaye
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development