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.
[EMAIL PROTECTED] 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: [EMAIL PROTECTED] | > + | Reported By: [EMAIL PROTECTED] | > + | 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
