Details
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.
Activity

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
|

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 ] |

Status | Open [ 1 ] | Resolved [ 5 ] |
Assignee | Mauro Talevi [ maurotalevi ] | |
Resolution | Fixed [ 1 ] |
Applied with thanks.