Re: newlines in property from -D argument

2009-06-26 Thread andrewdanger
yeah, this is an option, but i need it all in a script because i need to do non-ant things and i find it easier to do non-ant things in bash rather than with the task. anyway, i did find the solution, which is to escape newlines in the command output: VAR=`cmd | sed 's/$/\\/g'` (though this actu

newlines in property from -D argument

2009-06-24 Thread andrewdanger
i am running ant from a bash script. i have a variable that contains command output, including newlines. when i try to pass the variable to ant like ant -Dbuild.log="${BUILD_LOG}" newlines aren't preserved in the build.log property. do i need to massage the output before i give it to ant as a pr