JBehave
  1. JBehave
  2. JBEHAVE-634

Ant copy-dependencies task (for the bin distribution) doesn't work in Windows

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.3
    • Fix Version/s: 3.6
    • Component/s: Ant Tasks
    • Labels:
      None
    • Environment:
      Windows Vista, Ant-1.8.2
    • Number of attachments :
      1

      Description

      I tried to run the copy-dependencies tasks in ant running in Windows. This fails since the setup task always tries to delete and copy the jar file which isn't possible since Windows doesn't delete files that are currently open. (I assume it will not work either when the lib directory for ant is not writable in Linux)

      Copying the file to the lib directory doesn't work the first time anyway since the path is searched before ant is started, so the first time and has to be run twice.

      It is better to keep the jar file in the current directory and reference the file with a taskdef definition, this should work in all cases.

      I have attached a changed build.xml with the task defintion.

      1. build.xml
        0.5 kB
        Alexander Lehmann

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 3.6 [ 17721 ]
        Environment Windows Vista, Ant-1.8.2, Jbehave 3.5.3
        Windows Vista, Ant-1.8.2
        Mauro Talevi made changes -
        Component/s Build [ 11089 ]
        Summary using the ant file to fetch dependencies (for the bin distribution) doesn't work in Windows Ant copy-dependencies task (for the bin distribution) doesn't work in Windows
        Component/s Ant Tasks [ 11081 ]
        Hide
        Mauro Talevi added a comment -

        Applied with thanks.

        Show
        Mauro Talevi added a comment - Applied with thanks.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Mauro Talevi [ maurotalevi ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Alexander Lehmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: