• Home
  • Blog
  • Wiki
  • Projects
  • Contact Us






Groovy/Gant Tasks for (un)Tar and G(un)zip Fail To Work Like Native OS Commands

September 21st, 2009 By admin

I might have picked the wrong project on which to follow through with my vow to ditch shell scripts for Groovy scripts.

The Labs was recently engaged to do build monkey work on a very interesting Android project (can’t reveal the details just yet.)   One of the scripts we wrote for this project builds .dat images to flash the Android device. The first cut of the script failed to work when I used Ant tasks to do the tar’ing and gzip’ing. But when I replaced the Ant tasks with calls to the native Unix utiltiies the problem went away.

One of my colleagues suggested permissions might be the problem. Unfortunately, our deadline was so tight I was unable to follow up and verify this hypothesis.

The moral of the story is — I guess — that if the consumer of the gzip’d tar ball that you created with Gant tasks chokes on said tarball, then you should try dropping down to the native OS commands.

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • blogmarks
  • description
  • Furl
  • LinkedIn
  • Live
  • MySpace
  • Netvibes
  • Netvouz
  • NewsVine
  • Ping.fm
  • Pownce
  • Reddit
  • StumbleUpon
  • Technorati
  • Tumblr
  • TwitThis
  • Yahoo! Buzz
  • YahooMyWeb

Posted in Build Automation, Groovy | No Comments »




No Responses to “Groovy/Gant Tasks for (un)Tar and G(un)zip Fail To Work Like Native OS Commands”

Leave a Reply

  • Categories

    • Build Automation
      • Maven
    • Development Environment Tricks
      • Cygwin
    • Dynamic Languages
      • Groovy
        • Grails
    • Java
    • JQuery
    • Test Automation
      • Selenium
    • Uncategorized

  • Archives

    • June 2010
    • March 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
  • Meta

    • Log in
    • RSS
    • Comments RSS
    • Valid XHTML
    • XFN
    • WP