buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tammo van Lessen (JIRA)" <j...@apache.org>
Subject [jira] Created: (BUILDR-460) ZipTask uses backslash as directory separator under Windows
Date Tue, 29 Jun 2010 00:04:54 GMT
ZipTask uses backslash as directory separator under Windows
-----------------------------------------------------------

                 Key: BUILDR-460
                 URL: https://issues.apache.org/jira/browse/BUILDR-460
             Project: Buildr
          Issue Type: Bug
          Components: Packaging
    Affects Versions: 1.3.5
            Reporter: Tammo van Lessen


As reported in ODE-858, the following packaging spec created a zip file with backslashes as
directory separators under Windows. I believe such separators should always be slashes, no
matter which operating system is used.

package(:zip, :id=>"#{id}-sources").path("#{id}-sources-#{version}").tap do |zip|
    if File.exist?(".svn")
      `svn status -v`.reject { |l| l[0] == ?? || l[0] == ?D || l.strip.empty? || l[0...3]
== "---"}.
        map { |l| l.split.last }.reject { |f| File.directory?(f) }.
        each { |f| zip.include f, :as=>f }
    else
      zip.include Dir.pwd, :as=>"."
    end
  end


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message