I've tried to force FileReader to be closed adding this in jxr JavaFileImpl :

private Reader reader;

...

private void parse()
     throws IOException
{
    StreamTokenizer stok = null;
    try {
        stok = this.getTokenizer();

        (...)

    }
    finally {
        stok = null;
        if (this.reader != null) {
            this.reader.close();
        }
    }
}

private StreamTokenizer getTokenizer()
    throws IOException
{
    if (!new File(this.getFilename()).exists())
    {
        throw new IOException(this.getFilename() + " does not exist!");
    }
    this.reader = new FileReader(this.getFilename());

    (...)
}


It doesn't change anaything :

(...)
Caught java.io.IOException: Too many open files processing team-list.html
Exception Message: Too many open files

BUILD FAILED
File...... file:/C:/Documents and Settings/ndeloof/.maven/plugins/maven-linkchec
k-plugin-1.1/
Element... linkcheck:linkcheck
Line...... 73
Column.... 9
Impossible de crÚer un fichier dÚjÓ existant
Total time: 26 minutes 37 seconds
Finished at: Thu Dec 04 12:37:27 CET 2003

Nico.




----- Original Message ----- 
From: "Emmanuel Venisse" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 04, 2003 11:12 AM
Subject: Re: maven site : "Too many open files"


> Hi,
>
> Some users have this problem with big project. I think it's due to jxr
> plugin that doesn't close stream in JavaFileImpl class in the parse method.
> I don't have time for correct this, but if you can try to write a patch for
> it  and test it with your big project, it will be cool.
>
> Emmanuel
>
> ----- Original Message ----- 
> From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> To: "Maven Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, December 04, 2003 9:55 AM
> Subject: maven site : "Too many open files"
>
>
> > Hello,
> >
> > I get troubles generating doc-site in a (big) webapp :
> >
> > I get lot's of
> >
> > "Caught java.io.IOException: Too many open files processing xref/com...."
> >
> >
> >
> > Caught java.io.IOException: Too many open files processing team-list.html
> > Exception Message: Too many open files
> >
> > BUILD FAILED
> > File...... file:/C:/Documents and
> Settings/ndeloof/.maven/plugins/maven-linkchec
> > k-plugin-1.1/
> > Element... linkcheck:linkcheck
> > Line...... 73
> > Column.... 9
> > Too many open files
> > Total time: 27 minutes 10 seconds
> > Finished at: Thu Dec 04 09:29:04 CET 2003
> >
> >
> >
> >
> > How too make linkcheck work without opeing so much (?) files ?
> >
> > Nico.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to