Details
Description
The below buildr example produces a broken (java-wise anyway) zip file with this content:
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
Note the presence of the file . which appears to be a duplicate of the dir/bar file.
# 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