Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8611625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:25:20+00:00 2026-06-12T04:25:20+00:00

When I run the zip task with rake –-trace , it shows the calls

  • 0

When I run the zip task with rake –-trace, it shows the calls to default and zip_up_files, but it doesn’t create the zip file. It doesn’t give me an error message. What am I doing wrong?

require 'albacore'

task :default => :zip_up_files

zip :zip_up_files do |zip|
  zip.directories_to_zip 'C:\\Temp\\StuffToZip'
  zip.output_file = 'out.zip'
  zip.output_path = 'C:\\Temp'
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:25:21+00:00Added an answer on June 12, 2026 at 4:25 am

    I tried your rakefile on my machine and got no errors and no zip file! I looked into the Albacore zip task and it uses the Ruby ZipFile class. That seems to be a pure Ruby implementation of the zip archive. So, next thing I tried was fixing up the paths to use forward slashes. That worked!

    zip :zip_up_files do |zip|
      zip.directories_to_zip 'C:/Temp/StuffToZip'
      zip.output_file = 'out.zip'
      zip.output_path = 'C:/Temp'
    end
    

    I had another thought, that maybe you didn’t have permissions to write on the C drive. I wasn’t able to reproduce that, but it’s my recommendation to maybe be in a User controlled directory. Even if it’s an automated build user. Just double check.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I run zip utility from my app to create archive. Code similar to the
I'm trying to create 2 zip files as part of an ant task. Both
I'm using rake 0.8.7 I want to run a simple rake task that unzips
can I open and run downloaded file (.zip file) into android eclipse(Helios)? I wanna
I downloaded the Aptana_Studio_Setup_Linux.zip package, unpacked it and run ./AptanaStudio. It starts fine, but
I have one zip file that i want unzip .the size of this file
I need help creating a self extracting zip file that does not display anything.
I'm trying to compile and run the task-android-sample code from Google's API website. I
I need to create a WAR file that just contains static content files (gifs,
I'm trying to run a Powershell command to call 7-Zip to zip up a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.