maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Maczka <mmac...@interia.pl>
Subject Re: tidying up parameters in scripts
Date Tue, 07 Dec 2004 04:06:12 GMT
Trygve Laugstøl wrote:

>On man, 2004-12-06 at 11:55, Emmanuel Venisse wrote:
>  
>
>>----- Original Message ----- 
>>From: "Jason van Zyl" <jvanzyl@maven.org>
>>To: "Maven 2 Developers List" <m2-dev@maven.apache.org>
>>Sent: Sunday, December 05, 2004 5:31 AM
>>Subject: tidying up parameters in scripts
>>
>>
>>    
>>
>>>Howdy,
>>>
>>>I have changed the m2 unix script so that anything that is parameterized
>>>in the script is between some markers:
>>>
>>>#@#
>>>...
>>>#@#
>>>
>>>So if someone can do the same with the windows bat file I would
>>>appreciate it.
>>>      
>>>
>>Done.
>>All integration tests works fine under windows. All stream seems to be
>>closed.
>>    
>>
>
>Nice!
>
>I wonder how we can avoid getting into this problem again?
>
>Could it be possible to wrap the streams with some wrapper that will
>print some error message in finalize() unless the stream is closed?
>
>  
>
There is no guarantee that finalize() method will be ever called.

>Is there any profilers/analyzers that can analyze problems like this?
>
>  
>
It should be easy to write an aspect for that ... it will be worst 
(harder) to apply it :)


Michal

----------------------------------------------------------------------
Startuj z INTERIA.PL!!! >>> http://link.interia.pl/f1837


Mime
View raw message