buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BUILDR-458) Spurious . files added in zip archives when using :as renaming
Date Mon, 21 Jun 2010 04:57:22 GMT

    [ https://issues.apache.org/jira/browse/BUILDR-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880717#action_12880717
] 

Antoine Toulme commented on BUILDR-458:
---------------------------------------

I'm asking because BUILDR-457 is the exact same bug and we fixed it last week.

> Spurious . files added in zip archives when using :as renaming
> --------------------------------------------------------------
>
>                 Key: BUILDR-458
>                 URL: https://issues.apache.org/jira/browse/BUILDR-458
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.4
>         Environment: OS X 10.5.8
> jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java HotSpot(TM) 64-Bit
Server VM 1.6.0_20) [x86_64-java]
>            Reporter: Jesper Skov
>
> The below buildr example produces a broken (java-wise anyway) zip file with this content:
> {code}
> Archive:  target/testProject-1.0.0.zip
>   Length     Date   Time    Name
>  --------    ----   ----    ----
>        26  06-19-10 16:18   .
>         0  06-19-10 16:18   dir/
>        26  06-19-10 16:18   dir/bar
>         9  06-19-10 16:18   foo
>  --------                   -------
>        61                   4 files
> {code}
> Note the presence of the file {{.}} which appears to be a duplicate of the {{dir/bar}}
file.
> {code}
> # Generated by Buildr 1.4.0, change to your liking
> # Version number for this release
> VERSION_NUMBER = "1.0.0"
> # Group identifier for your projects
> GROUP = "testProject"
> COPYRIGHT = ""
> # Specify Maven 2.0 remote repositories here, like this:
> repositories.remote << "http://www.ibiblio.org/maven2/"
> desc "The TestProject project"
> define "testProject" do
>   project.version = VERSION_NUMBER
>   project.group = GROUP
>   manifest["Implementation-Vendor"] = COPYRIGHT
>   build do
>     FileUtils.mkdir_p(_(:target, "test/dir"))
>     File.open(_(:target, "test/foo"), "w") { | f | f.puts("foo file") }
>     File.open(_(:target, "test/dir/bar"), "w") { | f | f.puts("bar file with longer text")
}
>   end
> # Works as expected
> #  package(:zip).include(_(:target, "test/**"))
>   # Adds . in root folder of archive
>   package(:zip).include(_(:target, "test"), :as => ".")
> end
> {code}

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