From: Erik V. <eri...@xs...> - 2011-12-14 10:37:14
|
> From: brett lentz [mailto:bre...@gm...] > On Tue, Dec 13, 2011 at 8:38 PM, John David Galt > <jd...@di...> wrote: > >> $ ant > >> /cygdrive/c/Program Files/ant/bin/ant: line 2: $'\r': command not > >> found /cygdrive/c/Program Files/ant/bin/ant: line 17: $'\r': command > >> not found /cygdrive/c/Program Files/ant/bin/ant: line 24: syntax error > near unexpected token > `$'do\r'' > >> 'cygdrive/c/Program Files/ant/bin/ant: line 24: `for arg in "$@" ; do > > Unfortunately, this is where we hit the limits on my knowledge of Cygwin. > It's been a few years since I regularly did much of anything on a Windows > machine. Does Google give you anything useful searching on that error? > > I believe Erik uses Windows, but I think he does everything through Eclipse, > which has plugins for Git and built-in support for doing Ant builds from within > the IDE. I don't do ant builds, I'm just running inside Eclipse (or from the Rails jar in case I'm looking back to past releases). But it seems to me that the commands you're running suffer from spurious CR ('\r') end-of-line characters. Perhaps you should convert some file(s) with dos2unix? Erik. |