JBehave
  1. JBehave
  2. JBEHAVE-430

build.xml may not work due to user rights and can change users {ant.home}/lib

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.6
    • Component/s: Ant Tasks
    • Labels:
      None
    • Environment:
      linux ubuntu
    • Number of attachments :
      0

      Description

      Hi,

      The shipped build.xml of jbehave 3.1.2 has two targets: setup and copy-dependencies. The second one depends on the first one, but under certain circumstances the setup task may fail, which will make the copy-dependencies fail. For example if someone has a globally installed ant version (in case of ubuntu apt-get install ant).

      ~/Desktop/jbehave-3.1.2/lib % ant
      Buildfile: /home/zsolt/Desktop/jbehave-3.1.2/lib/build.xml

      setup:
      [copy] Copying 1 file to /usr/share/ant/lib

      BUILD FAILED
      /home/zsolt/Desktop/jbehave-3.1.2/lib/build.xml:9: Failed to copy /home/zsolt/Desktop/jbehave-3.1.2/lib/maven-ant-tasks-2.1.0.jar to /usr/share/ant/lib/maven-ant-tasks-2.1.0.jar due to java.io.FileNotFoundException /usr/share/ant/lib/maven-ant-tasks-2.1.0.jar (Permission denied)

      Additionally I don't really like that the setup tasks changes the content of my

      {ant.home/lib}

      folder, because I might have the latest version (currently 2.1.1) of maven-ant-tasks for some reasons, but the build.xml of jbehave removes it and replaces it with an older version (2.1.0)

      After removing the dependency between the setup and copy-dependencies tasks I was able to download the libraries of jbehave.

      Cheers,
      Zsolt

        Activity

        Hide
        Paul Hammant added a comment -

        I've upgraded to push 2.1.1 into ANT_HOME/libs instead of 2.1.0

        But of course, that's not really the point of you bug report ZSoft.

        Attach an improved build.xml that suits you will ya ?

        Show
        Paul Hammant added a comment - I've upgraded to push 2.1.1 into ANT_HOME/libs instead of 2.1.0 But of course, that's not really the point of you bug report ZSoft. Attach an improved build.xml that suits you will ya ?
        Hide
        Zsolt Fabok added a comment -

        Sorry for the late response. I'm working on the build.xml, and I'll upload it after testing

        Show
        Zsolt Fabok added a comment - Sorry for the late response. I'm working on the build.xml, and I'll upload it after testing
        Hide
        Alexander Lehmann added a comment -

        this issue was resolved with JBEHAVE-634
        (even though I noticed the problem in Windows, the cause of the issue is the same as this)

        Show
        Alexander Lehmann added a comment - this issue was resolved with JBEHAVE-634 (even though I noticed the problem in Windows, the cause of the issue is the same as this)
        Hide
        Mauro Talevi added a comment -

        Fixed by JBEHAVE-634.

        Show
        Mauro Talevi added a comment - Fixed by JBEHAVE-634 .
        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.6 [ 17721 ]
        Resolution Duplicate [ 3 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Zsolt Fabok
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: