You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ghadi Mahmoudi <gh...@cosens.de> on 2008/12/23 19:18:08 UTC

How to write a file to console?

Hallo,

how can I print a file (text) to the console? of course with ant...

thanks

 
M.Sc. Ghadi Mahmoudi
System Engineer


COSENS GmbH
Lerchenkamp 11
31137 Hildesheim
Tel.: +49 5121 17750-43
Fax: +49 5121 17750-49
E-Mail:  <ma...@cosens.de>
ghadi.mahmoudi@cosens.de
 <http://www.cosens.de/> www.cosens.de

Sitz der Gesellschaft: Hildesheim 
Handelsregister: Amtsgericht Hildesheim HRB 3620
Geschäftsführer: Dr. Hamed Amor

 

AW: How to write a file to console?

Posted by Ja...@rzf.fin-nrw.de.
<concat> 

> -----Ursprüngliche Nachricht-----
> Von: Brian Stephenson [mailto:bstephenson@thortech-solutions.com] 
> Gesendet: Dienstag, 23. Dezember 2008 19:26
> An: Ant Users List
> Betreff: Re: How to write a file to console?
> 
> Load and echo......
> 
> <loadfile property="mytext" srcFile="mytextfile.txt"/>
> 
> <echo>${mytext}</echo>
> 
> 
> 
> Brian Stephenson
> ThorTech Solutions
> www.thortech-solutions.com
> (914) 302-7638  [work]
> (914) 302-7641  [fax]
> 
> 
> On Dec 23, 2008, at 1:18 PM, Ghadi Mahmoudi wrote:
> 
> > Hallo,
> >
> > how can I print a file (text) to the console? of course with ant...
> >
> > thanks
> >
> >
> > M.Sc. Ghadi Mahmoudi
> > System Engineer
> >
> >
> > COSENS GmbH
> > Lerchenkamp 11
> > 31137 Hildesheim
> > Tel.: +49 5121 17750-43
> > Fax: +49 5121 17750-49
> > E-Mail:  <ma...@cosens.de>
> > ghadi.mahmoudi@cosens.de
> > <http://www.cosens.de/> www.cosens.de
> >
> > Sitz der Gesellschaft: Hildesheim
> > Handelsregister: Amtsgericht Hildesheim HRB 3620
> > Geschäftsführer: Dr. Hamed Amor
> >
> >
> 
> 
> 
> 

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


Re: How to write a file to console?

Posted by Brian Stephenson <bs...@thortech-solutions.com>.
Load and echo......

<loadfile property="mytext" srcFile="mytextfile.txt"/>

<echo>${mytext}</echo>



Brian Stephenson
ThorTech Solutions
www.thortech-solutions.com
(914) 302-7638  [work]
(914) 302-7641  [fax]


On Dec 23, 2008, at 1:18 PM, Ghadi Mahmoudi wrote:

> Hallo,
>
> how can I print a file (text) to the console? of course with ant...
>
> thanks
>
>
> M.Sc. Ghadi Mahmoudi
> System Engineer
>
>
> COSENS GmbH
> Lerchenkamp 11
> 31137 Hildesheim
> Tel.: +49 5121 17750-43
> Fax: +49 5121 17750-49
> E-Mail:  <ma...@cosens.de>
> ghadi.mahmoudi@cosens.de
> <http://www.cosens.de/> www.cosens.de
>
> Sitz der Gesellschaft: Hildesheim
> Handelsregister: Amtsgericht Hildesheim HRB 3620
> Geschäftsführer: Dr. Hamed Amor
>
>




Re: How to write a file to console?

Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Well, you can certainly load the file using the loadfile target (store to 
a property) then echo the property...



On Tue, 23 Dec 2008, Ghadi Mahmoudi wrote:

> Hallo,
>
> how can I print a file (text) to the console? of course with ant...
>
> thanks
>
>
> M.Sc. Ghadi Mahmoudi
> System Engineer
>
>
> COSENS GmbH
> Lerchenkamp 11
> 31137 Hildesheim
> Tel.: +49 5121 17750-43
> Fax: +49 5121 17750-49
> E-Mail:  <ma...@cosens.de>
> ghadi.mahmoudi@cosens.de
> <http://www.cosens.de/> www.cosens.de
>
> Sitz der Gesellschaft: Hildesheim
> Handelsregister: Amtsgericht Hildesheim HRB 3620
> Gesch�ftsf�hrer: Dr. Hamed Amor
>
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros