aws-ant-tasks
aws-ant-tasks copied to clipboard
Download from s3 task fails when using the dir parameter.
When I use the download from s3 task with the dir parameter I am getting this error: IOException while attempting to create new file: Not a directory
Here is my target definition:
<target name="download.s3.resources" description="pull resource files from s3">
<download-from-s3 bucketName="test-bucket" keyPrefix="resources/" dir="build/classes" />
</target>
Here is the output from the task: [download-from-s3] Downloading S3Object with key resources/test from bucket test-bucket to file build/classes:resources/test...
I believe this issue is being caused by the code using File.pathSeparator instead of File.separator when building the file path.