Re: tasklist/checkstyle version dep

Petr Kuzel <[email protected]> Wed, 11 Feb 2004 12:05:24 +0100
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems
Message-ID <[email protected]>
John Richardson wrote:

> On Mon, 17 Nov 2003 04:46:54 -0500, Jesse Glick wrote:
> 
>> Tor Norbye wrote:
>>> Hmm, I wonder if they've fixed the reason why I "abandoned" the
>>> integration with checkstyle in the first place: I could only find a way
>>> to run their checkers on Files, not InputStream / Reader / Document /
>>> something dynamic.  For now, the checkstyle integration is pretty
>>> rough.
>> 
>> Release notes for 3.2 don't mention anything like that. Did you file an
>> RFE or patch for them?
> 
> FWIW, I did some digging and it turns out that some of the checks really
> do need a java.io.File because they access the file via a
> RandomAccessFile, etc...
> 
> I inquired about hacking in InputStreams on the checkstyle developer list.
> Basically I was throwing out the idea of creating an abstraction over File
> which would include both File and InputStreams.  This didn't go over too
> well.
> 
> Is Jesse's suggestion of File.createTempFile() that much of a headache?

In development time few lines of code. In runtime probably
several hundreds milliseconds. It's probably OK for user's action
but unsuitable for background scanning.

  Cc.

-- 
<address>
<a href="mailto:[email protected]">Petr Kuzel</a> at Sun Microsystems :
<a href="http://www.netbeans.org/">NetBeans Java IDE</a></address>