Just tried that. Same thing. It might be a CruiseControl issue.
On 5/22/07, Peter Reilly <[EMAIL PROTECTED]> wrote:
I do not know why you see these messages,
however you may be able to redirect them to an ant property.
<exec outputproperty="myoutputproperty">
...
</exec>
Another possiblity is to use the <fixcrlf> task.
Peter
On 5/22/07, David Weintraub <[EMAIL PROTECTED]> wrote:
> As part of our build process, I have to convert DOS line endings to
> Unix line endings on shell script we package in our tarball.
>
> I use the "dos2unix" command for that which I've placed inside a shell
> script. Then, I have the ant "exec" task run the shell script.
>
> A funny thing, my shell script produces no output. I've used the
> "--quiet" switch on the dos2unix command, then I even redirect the
> output to /dev/null and merge STDERR to STDOUT. If I run the build.xml
> via the command line, I get no output. However, if I have
> CruiseControl run the build, I get thousands of lines of:
>
> dos2unix: converting file bin/dom_asset_adserver_xref_initializer to
> UNIX format ...
> dos2unix: converting file bin/run_de6_auto_import to UNIX format ...
> dos2unix: converting file bin/run_flight_status_checker.cmd to UNIX format ...
> dos2unix: converting file bin/run_dom_autoimport_request_processor to
> UNIX format ...
> dos2unix: converting file bin/run_dom_autoimport_loader.sh to UNIX format ...
> dos2unix: converting file bin/run_flight_status_checker.sh to UNIX format ...
> dos2unix: converting file bin/run_flight_status_checker_AS.sh to UNIX format
...
> dos2unix: converting file bin/run_dom_autoimport_requester to UNIX format ...
> dos2unix: converting file bin/run_autoimport_extractor to UNIX format ...
>
> I'm at a loss as to why I am getting these messages in my
> CruiseControl log and how I can get rid of them.
>
> Here's my shell script:
>
> #! /bin/ksh
> # fixLineEndings
> #
> for directory in "$@"
> do
> echo "Fixing line endings in directory \"$directory\""
> find $directory -type f | while read file
> do
> filetype=`file $file`
> if echo "$filetype" | grep "text" > /dev/null 2>&1
> then
> dos2unix -q "$file" > /dev/null 2>&1
> fi
> done
> done
>
>
> And here's my Ant task:
>
> <exec
> executable="${basedir}/fixLineEndings"
> os="Linux">
> <arg value="${tarfilebase}/bin"/>
> <arg value="${tarfilebase}/conf"/>
> <arg value="${tarfilebase}/dbutil"/>
> </exec>
>
> --
> David Weintraub
> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
--
David Weintraub
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]