package(:zip) returns Rake::FileTask instead of Rake::ZipTask when the zip file 
already exists
----------------------------------------------------------------------------------------------

                 Key: BUILDR-15
                 URL: https://issues.apache.org/jira/browse/BUILDR-15
             Project: Buildr
          Issue Type: Bug
    Affects Versions: 1.3
         Environment: openSuse 10.3
ruby 1.8.6 (2007-06-07 patchlevel 36) [i586-linux]
Buildr, version 1.3.0 (r609583)
            Reporter: Thomas Marek
            Priority: Critical


Buildfile:
# Generated by Buildr 1.3.0, change to your liking
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Version number for the next release
NEXT_VERSION = "1.0.1"
# 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 "The Buildr-test project"
define "buildr-test" do

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

  package(:zip).include path_to('*')
end


First run:
[EMAIL PROTECTED]:~/public_html/buildr-test> buildr package --trace
(in /home/tmak/public_html/buildr-test)
** Invoke buildr:initialize (first_time)
** Execute buildr:initialize
** Invoke buildr-test (first_time)
** Execute buildr-test
** Invoke /usr/lib/jvm/java/lib/tools.jar (first_time, not_needed)
** Invoke /home/tmak/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar 
(first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar
 (first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar 
(first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar 
(first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/org/apache/ant/ant-junit/1.7.0/ant-junit-1.7.0.jar 
(first_time, not_needed)
** Invoke buildr-test
** Invoke package (first_time)
** Invoke build (first_time)
** Execute build
** Invoke buildr-test
** Invoke buildr-test
Building buildr-test
** Invoke buildr-test:build (first_time)
** Execute buildr-test:build
** Invoke test (first_time)
** Execute test
** Invoke buildr-test
** Invoke buildr-test
Testing buildr-test
** Invoke buildr-test:test (first_time)
** Invoke buildr-test:test:compile (first_time, not_needed)
** Invoke buildr-test:compile (first_time, not_needed)
** Invoke buildr-test:resources (first_time)
** Execute buildr-test:resources
** Invoke buildr-test:test:resources (first_time)
** Execute buildr-test:test:resources
** Invoke /home/tmak/public_html/buildr-test/target/resources (first_time)
** Invoke buildr-test:resources
** Execute /home/tmak/public_html/buildr-test/target/resources
** Invoke /home/tmak/.m2/repository/junit/junit/4.3.1/junit-4.3.1.jar 
(first_time, not_needed)
** Invoke /home/tmak/.m2/repository/jmock/jmock/1.2.0/jmock-1.2.0.jar 
(first_time, not_needed)
** Invoke buildr-test:test:setup (first_time)
** Execute buildr-test:test:setup
** Execute buildr-test:test
** Invoke buildr-test:test:teardown (first_time)
** Execute buildr-test:test:teardown
** Execute package
** Invoke buildr-test
** Invoke buildr-test
Packaging buildr-test
** Invoke buildr-test:package (first_time)
** Invoke buildr-test:build
** Invoke /home/tmak/public_html/buildr-test/target/buildr-test-1.0.0.zip 
(first_time)
** Invoke buildr-test:build
** Invoke /home/tmak/public_html/buildr-test/buildfile (first_time, not_needed)
** Execute /home/tmak/public_html/buildr-test/target/buildr-test-1.0.0.zip
Adding buildfile
** Execute buildr-test:package
** Invoke buildr-test:check (first_time)
** Execute buildr-test:check
** Invoke integration (first_time)
** Invoke integration:setup (first_time)
** Execute integration:setup
** Execute integration
Running integration tests...
** Invoke buildr-test
** Invoke buildr-test
** Invoke integration:teardown (first_time)
** Execute integration:teardown
Loaded suite /usr/bin/buildr
Started

Finished in 0,000165 seconds.

0 tests, 0 assertions, 0 failures, 0 errors



Second run:
[EMAIL PROTECTED]:~/public_html/buildr-test> buildr package --trace
(in /home/tmak/public_html/buildr-test)
** Invoke buildr:initialize (first_time)
** Execute buildr:initialize
** Invoke buildr-test (first_time)
** Execute buildr-test
** Invoke /usr/lib/jvm/java/lib/tools.jar (first_time, not_needed)
** Invoke /home/tmak/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar 
(first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar
 (first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar 
(first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar 
(first_time, not_needed)
** Invoke 
/home/tmak/.m2/repository/org/apache/ant/ant-junit/1.7.0/ant-junit-1.7.0.jar 
(first_time, not_needed)
rake aborted!
undefined method `include' for #<Rake::FileTask:0xb74855b4>
/home/tmak/public_html/buildr-test/buildfile:20
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/project.rb:227:in 
`instance_eval'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/project.rb:227:in `define'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/project.rb:630:in `execute'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:96:in 
`invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:87:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:87:in 
`invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:82:in `invoke'
/usr/lib/ruby/gems/1.8/gems/facets-2.2.1/lib/core/facets/conversion.rb:425:in 
`__send__'
/usr/lib/ruby/gems/1.8/gems/facets-2.2.1/lib/core/facets/conversion.rb:425:in 
`to_proc'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/project.rb:282:in `each'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/project.rb:282:in `projects'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/project.rb:866:in `projects'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/project.rb:873
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:96:in 
`invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:87:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:87:in 
`invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/common.rb:82:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in 
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/application.rb:54:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in 
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/core/application.rb:51:in `run'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:7
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19

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

Reply via email to