Alex Feseto | 1 Dec 2004 13:10
Favicon

Re: AW: Ant <script> tag query

Oh man, schoolboy error!

Couldn't see the wood for the trees even when I stripped it down to that 
simple example!

Thanks people, amazingly quick responses :-)

Jan.Materne <at> rzf.fin-nrw.de wrote:
> A valid close() would also do a flush().
> Problem was that he didnt close the stream (and therefore didnt flushed).
> 
> Jan
> 
> 
>>-----Ursprüngliche Nachricht-----
>>Von: Ivan Ivanov [mailto:rambiusparkisanius <at> yahoo.com]
>>Gesendet am: Mittwoch, 1. Dezember 2004 13:06
>>An: Ant Users List
>>Betreff: Re: Ant <script> tag query
>>
>>Alex, flush the outfile, the follwing should works:
>><project name="MyProject" basedir="." default="main">
>>   <target name="main">
>>     <script language="javascript"> <![CDATA[
>>
>>       importPackage(java.io);
>>       var outfile = new PrintWriter(new
>>FileWriter("test.txt"));
>>		
>>       outfile.println("Testing1");
(Continue reading)


Gmane