Re: newbie: Now to append newline.

2001-12-03 Thread Stefan Bodewig

From: Stefan Bodewig [EMAIL PROTECTED]

 echo file=${classes.dir}/properties/release.txt append=true
 /echo

OK, this doesn't work because of XML's notion of ignorable
whitespace.  We could fix that by supporting the xml:space attribute
as described in the XML spec
http://www.w3.org/TR/1998/REC-xml-19980210#sec-white-space, but an
easier solution to the specifc problem is:

echo file=${classes.dir}/properties/release.txt 
  append=true
  message=${line.separator} /

which will always append the newline character appropriate for the
current operating system.  Alternatives go along the lines of

echo file=${classes.dir}/properties/release.txt 
  append=true
  message=#13;#10; /

for a carriage-return line-feed sequence.

Stefan

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: newbie: Now to append newline.

2001-12-03 Thread Manik Surtani




How about enclosing it in CDATA tags?

E.g., 
echo ![CDATA[

]]/echo

?

Cheers,
Manik

Stefan Bodewig wrote:
[EMAIL PROTECTED]">
  From: Stefan Bodewig [EMAIL PROTECTED]
  
echo file="${classes.dir}/properties/release.txt" append="true"/echo

OK, this doesn't work because of XML's notion of ignorablewhitespace.  We could "fix" that by supporting the xml:space attributeas described in the XML spechttp://www.w3.org/TR/1998/REC-xml-19980210#sec-white-space, but aneasier solution to the specifc problem is:echo file="${classes.dir}/properties/release.txt"   append="true"  message="${line.separator}" /which will always append the "newline" character appropriate for thecurrent operating system.  Alternatives go along the lines ofecho file="${classes.dir}/properties/release.txt"   append="true"  message="#13;#10;" /for a carriage-return line-feed sequence.Stefan--To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]For additional commands, e-mail: mailto:[EMAIL PROTECTED]



-- Manik SurtaniChief Technology OfficerSilk Road LimitedTelephone: 07786 702 706Email: [EMAIL PROTECTED]Web: http://www.silkroad.co.uk




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: newbie: Now to append newline.

2001-12-03 Thread Stefan Bodewig

On Mon, 03 Dec 2001, Manik Surtani [EMAIL PROTECTED]
wrote:

 How about enclosing it in CDATA tags?

I thought it should work, but when I tried it, it didn't append
anything.

Stefan

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: newbie: Now to append newline.

2001-11-23 Thread Stefan Bodewig

echo file=${classes.dir}/properties/release.txt append=true
/echo

and make sure that there is no space after the opening or in front of
the closing tag.

Stefan

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: newbie: Now to append newline.

2001-11-23 Thread Stefan Bodewig

On 23 Nov 2001, Stefan Bodewig [EMAIL PROTECTED] wrote:

 echo file=${classes.dir}/properties/release.txt append=true
 /echo

this doesn't work, there seems to be a bug somewhere.

Stefan

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]