« Return to Thread: newlines in property from -D argument

newlines in property from -D argument

by andrewdanger :: Rate this Message:

Reply to Author | View in Thread

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 property?

 « Return to Thread: newlines in property from -D argument