Blog Post

Ant, RPM, why do my dashes become underscores?

Just wanted to throw this out and see if anyone else is experiencing this, has experienced this, or knows how to fix this. I only know of one way to reproduce this and it is using Ant to create RPMs. I have my directory structure like the following:

/home/username/folder/sub-folder/foo

When I run Ant in sub-folder, it will break complaining that there is no such file or directory. It is there! For real it is. But after further review, I noticed it wasn’t lying, but it was looking for a different directory. It was looking for the following:

/home/username/folder/sub_folder/foo

That’s right, it is trying to do work in the sub_folder instead of the correct sub-folder. I am going nuts trying to figure this out.

My work around right now is to rename the sub-folder to sub_folder and then everything works out. Any ideas?

Note: This just started happening in Intrepid, worked fine earlier in Intrepid and worked in Hardy.

This entry was posted in Application and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • j-e-s-s

    did you find which versions of ant its changed in? maybe check the release notes?

  • http://blog.nixternal.com nixternal

    I have scoured my ant checkout and I haven’t found one single thing that has changed in ant that would cause it. There is actually no difference in the version I used in Hardy and the Version I use in Intrepid. The issue is outside of Ant.

  • http://blog.nixternal.com nixternal

    Fixed this and uploaded to Jaunty. Will work at backporting it to Intrepid and checking upstream as well.

  • Pingback: Anecdotes of a Dog Part 7 | Anecdotes of a Dog

  • Pingback: Anecdotes of a Dog Part 7 | Anecdotes of a Dog

  • Subscribe to nixternal.com

     Subscribe in a reader

    Or, subscribe via email:
    Enter your email address:

  • Archives



  • Twitter Updates

    • @anthonyrhook i keep wanting to grab pictures, but everytime I am outside I don't have my phone on me, or I am on my bike » 10 minutes ago
    • @jjesse they protest everything. the peaceful protesters bore me. I enjoy the ones slashing cop tires and fishing 4 cops with donuts & poles » 21 minutes ago
    • @jjesse oh yeah. thank god i live in the suburbs, so all i get to see are things like this. screw protesting, to hot :) » 23 minutes ago
    • woo, #chicago #illinois went from a police state to a military state. f-16s buzzing the crib, blackhawks coming back for fuel. #goodtimes » 25 minutes ago
    • 7 hours, my bicycle, the sun, and I equates to being fried. » 16 hours ago
semidetached
semidetached
semidetached
semidetached