Ant, RPM, why do my dashes become underscores?

October 30th, 2008  |  Published in Help  |  5 Comments

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.

Responses

  1. j-e-s-sNo Gravatar says:

    October 31st, 2008 at 14:16:33 (#)

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

  2. nixternalNo Gravatar says:

    November 2nd, 2008 at 20:49:48 (#)

    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.

  3. nixternalNo Gravatar says:

    November 11th, 2008 at 17:16:31 (#)

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

  4. Anecdotes of a Dog Part 7 | Anecdotes of a Dog says:

    November 16th, 2008 at 06:58:34 (#)

    [...] nixternal » Ant, RPM, why do my dashes become underscores? [...]

  5. Anecdotes of a Dog Part 7 | Anecdotes of a Dog says:

    November 16th, 2008 at 06:58:34 (#)

    [...] nixternal » Ant, RPM, why do my dashes become underscores? [...]

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">