ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 837] New - antRun script contains ^M characters which causes <exec> to fail
Date Mon, 05 Mar 2001 14:29:57 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=837

*** shadow/837	Mon Mar  5 06:29:56 2001
--- shadow/837.tmp.1383	Mon Mar  5 06:29:57 2001
***************
*** 0 ****
--- 1,23 ----
+ +============================================================================+
+ | antRun script contains ^M characters which causes <exec> to fail           |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 837                         Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority:                           Component: Wrapper scripts         |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: michael.twomey@ireland.sun.com                               |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The antRun script appears to have been edited in Windows which has resulted in
+ CR/LF (^M) characters appearing in it. This causes sh to die with cryptic error
+ messages on any <exec> task which has <arg> or dir attributes. <exec>
fails with
+ a -1 error.
+ 
+ This can easily fixed using dos2unix or tr or just opening it in a unix editor
+ and stripping out the ^M characters (vi worked a treat for me).

Mime
View raw message