You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Alex Boisvert (JIRA)" <ji...@apache.org> on 2009/06/18 16:39:07 UTC
[jira] Updated: (BUILDR-287) Optionally use destination folder as
temporary storage during download instead of using default TMPDIR env
variable
[ https://issues.apache.org/jira/browse/BUILDR-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Boisvert updated BUILDR-287:
---------------------------------
Issue Type: New Feature (was: Bug)
Summary: Optionally use destination folder as temporary storage during download instead of using default TMPDIR env variable (was: buildr should download temporary files to the destination folder, not the temp directory)
If you guys don't mind, I'm rewording this as an enhancement request rather than a bug. Using TMPDIR is fairly standard and I think the right thing to do by default.
> Optionally use destination folder as temporary storage during download instead of using default TMPDIR env variable
> -------------------------------------------------------------------------------------------------------------------
>
> Key: BUILDR-287
> URL: https://issues.apache.org/jira/browse/BUILDR-287
> Project: Buildr
> Issue Type: New Feature
> Components: Dependency management
> Affects Versions: 1.3.4
> Reporter: Ittay Dror
> Fix For: 1.3.5
>
>
> when downloading artifacts, BuildR first downloads to a temporary file in the temporary directory (/tmp) and then moves the file to the repository location (Generic#download in transports.rb).
> In many unix systems, /tmp is a separate mount from /. This creates two drawbacks:
> 1. if there is not enough space in /tmp, the download fails (this happens to us many times, and during a nightly build)
> 2. moving files between partitions is actually copy and delete
> If instead, BuildR will download the file to the directory in the repository and then rename to the actual file name, these problems will be solved.
> The fix is to use
> Tempfile.open File.basename(target), File.dirname(target)
> When creating the temporary file for download
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.