You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Markus Innerebner <ma...@wuerth-phoenix.com> on 2004/10/04 18:02:24 UTC

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
<ma...@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