buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingo Schmidt (JIRA)" <>
Subject [jira] [Created] (BUILDR-605) unzip task doesnot work correctly any more
Date Mon, 08 Aug 2011 13:22:27 GMT
unzip task doesnot work correctly any more

                 Key: BUILDR-605
             Project: Buildr
          Issue Type: Bug
    Affects Versions: 1.4.6, 1.4.5
            Reporter: Ingo Schmidt

The unzip task does not create all folders as needed under certain circumstances. Consider
the following very simple project:
-* buildfile
-* webshop-war/src/main/webapp/

Contents of is this:
- folder1/file1.txt
- folder2/file2.txt

The buildscript:
# Generated by Buildr 1.4.6, change to your liking

# Version number for this release
# Group identifier for your projects
GROUP = "buildr-test"

# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << ""

desc "ZIP Bug Demo"
define "buildr-test" do

  project.version = VERSION_NUMBER = GROUP
  manifest["Implementation-Vendor"] = COPYRIGHT

  define "webshop-war" do
    packageWAR = package(:war)
		f1 = unzip(project.parent._(:target, "bug1", "folder1")=>"").from_path("folder1/*").root
		f2 = unzip(project.parent._(:target, "bug2", "folder2")=>"").from_path("folder2/*").root
# remove
		packageWAR.include(:from => f1)
		packageWAR.include(:from => f2)	# remove


Now run "buildr package". It will fail:
Building buildr-test
Packaging buildr-test
Packaging buildr-test-webshop-war-1.0.0.war
Buildr aborted!
Errno::ENOENT : No such file or directory - D:/buildr-test/target/bug/folder1

(See full trace by running task with --trace)

And now the weird part:
Remove the lines marked with "remove" and it will work again!

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message