buildr-commits mailing list archives

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

     [ https://issues.apache.org/jira/browse/BUILDR-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ingo Schmidt updated BUILDR-605:
--------------------------------

    Attachment: buildr-test.zip

Sample project to demonstrate the bug

> unzip task doesnot work correctly any more
> ------------------------------------------
>
>                 Key: BUILDR-605
>                 URL: https://issues.apache.org/jira/browse/BUILDR-605
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4.5, 1.4.6
>            Reporter: Ingo Schmidt
>         Attachments: buildr-test.zip
>
>
> The unzip task does not create all folders as needed under certain circumstances. Consider
the following very simple project:
> -* bug.zip
> -* buildfile
> -* webshop-war/src/main/webapp/
> Contents of bug.zip is this:
> - folder1/file1.txt
> - folder2/file2.txt
> The buildscript:
> {noformat}
> # Generated by Buildr 1.4.6, change to your liking
> # Version number for this release
> VERSION_NUMBER = "1.0.0"
> # Group identifier for your projects
> GROUP = "buildr-test"
> COPYRIGHT = ""
> # Specify Maven 2.0 remote repositories here, like this:
> repositories.remote << "http://www.ibiblio.org/maven2/"
> desc "ZIP Bug Demo"
> define "buildr-test" do
>   project.version = VERSION_NUMBER
>   project.group = GROUP
>   manifest["Implementation-Vendor"] = COPYRIGHT
>   define "webshop-war" do
>     packageWAR = package(:war)
> 		f1 = unzip(project.parent._(:target, "bug1", "folder1")=>"bug.zip").from_path("folder1/*").root
> 		f2 = unzip(project.parent._(:target, "bug2", "folder2")=>"bug.zip").from_path("folder2/*").root
# remove
> 		packageWAR.include(:from => f1)
> 		packageWAR.include(:from => f2)	# remove
>   end
> end
> {noformat}
> Now run "buildr package". It will fail:
> {noformat}
> 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)
> {noformat}
> 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: http://www.atlassian.com/software/jira

        

Mime
View raw message