ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Wood <kenneth_w...@i2.com>
Subject Re: [Bug 837] New - antRun script contains ^M characters which causes <exec> to fail
Date Mon, 05 Mar 2001 14:43:36 GMT
Perhaps the build.xml file for ant should include
the appropriate invocation of fixcrlf on sh files
in creating the distribution. Then it wouldn't matter
what the source had, as long as the distribution ended
up correct.

bugzilla@apache.org wrote:
> 
> 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).
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org

Mime
View raw message