[ 
http://jira.codehaus.org/browse/MOJO-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Tran reassigned MOJO-1156:
------------------------------

    Assignee: Dan Tran

> Compilation fails with "Too many open files"
> --------------------------------------------
>
>                 Key: MOJO-1156
>                 URL: http://jira.codehaus.org/browse/MOJO-1156
>             Project: Mojo
>          Issue Type: Bug
>          Components: native
>         Environment: Linux
>            Reporter: David Allen
>            Assignee: Dan Tran
>
> On Linux, certain projects fail to build with too many open files.  The 
> following patch to org.codehaus.mojo.natives.Dependency.getIncludeNames 
> method fixes this issue by explicitly closing the reader opened when 
> analyzing include files.  I cannot easily generate a subversion diff at this 
> point, but the change should be straightforward:
>     private String [] getIncludeNames()
>         throws IOException
>     {
>         Reader reader = null;
>         try
>         {
>             reader = new BufferedReader( new FileReader( this.source ) );
>             parser.parse(reader);
>             return parser.getIncludes();
>         }
>         finally
>         {
>             if (reader != null)
>             {
>                 reader.close();
>             }
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to