ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GE Energy, Non GE, GENE)" <Luis1.Cone...@ge.com>
Subject RE: how do i append text in a file ?
Date Mon, 04 Oct 2004 16:07:21 GMT
why don't you use ${line.separator}?


-----Original Message-----
From: Markus Innerebner [mailto:markus.innerebner@wuerth-phoenix.com]
Sent: Monday, October 04, 2004 11:02 AM
To: user@ant.apache.org
Subject: how do i append text in a file ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
hello,
i want to appen text starting with a new line? Is there something like
a line separator "\n"?
actually i am trying it in that way but it doesn't work:

<tempfile property="test.sql"/>
<propertyfile file="test.sql">
~    <entry  key="default" value="default"/>
</propertyfile>
<replace file="test.sql" token="default=default" value="spool run.sql"/>
<concat destfile="test.sql" fixlastline="yes">SELECT 'DROP TABLE
'||table_name||' CASCADE CONSTRAINTS;' FROM user_tables;</concat>
<concat destfile="test.sql" fixlastline="yes">SELECT 'DROP
'||object_type||' '||object_name||';' FROM user_objects WHERE
object_type     <![CDATA[<>]]> 'TABLE';</concat>
<concat destfile="test.sql" fixlastline="yes">spool off</concat>
<concat destfile="test.sql" fixlastline="yes">@run.sql</concat>
<concat destfile="test.sql" fixlastline="yes">EXIT</concat>

I don't know, if this is the right way to append a line in a textfile.

thanks 4 helping me

- --
best regards

W├╝rth Phoenix S.r.l.
Markus Innerebner
ZEUS Developer
Via Kravogl 4
I-39100 Bolzano
Phone: +39 0471 / 564061
Fax: +39 0471 / 564062
E-Mail: markus.innerebner@wuerth-phoenix.com
Website: http://www.wuerth-phoenix.com

pub  1024D/0E45CE6D 2004-09-28 markusin
<markus.innerebner@wuerth-phoenix.com>
Key fingerprint = 5E12 A775 B742 274B ABFB  DCE8 ED90 806E 0E45 CE6D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFBYXQQ7ZCAbg5Fzm0RAp1mAJ9GyyNOXWjGQLFczT64xxKnZ/S6KgCfRXln
bX2z8RGvY4lR/NcwicxmQrA=
=EiMG
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message