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.





October 31st, 2008 at 14:16:33 (#)
did you find which versions of ant its changed in? maybe check the release notes?
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.
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.
November 16th, 2008 at 06:58:34 (#)
[...] nixternal » Ant, RPM, why do my dashes become underscores? [...]
November 16th, 2008 at 06:58:34 (#)
[...] nixternal » Ant, RPM, why do my dashes become underscores? [...]