protected String[] getExcludes( String[] origExcludes, boolean skipDefaultExcludes )
    {
        if ( skipDefaultExcludes )
        {
            return origExcludes;
        }

        String[] defaultExcludes = FileUtils.getDefaultExcludes();
        if ( origExcludes == null || origExcludes.length == 0 )
        {
            return defaultExcludes;
        }
        String[] result = new String[origExcludes.length + defaultExcludes.length];
        System.arraycopy( origExcludes, 0, result, 0, origExcludes.length );
        System.arraycopy( defaultExcludes, 0, result, origExcludes.length, defaultExcludes.length );
        return result;
    }
protected String [ ] getExcludes ( String [ ] origExcludes , boolean skipDefaultExcludes ) { if ( skipDefaultExcludes ) { return origExcludes ; } String [ ] defaultExcludes = FileUtils . getDefaultExcludes ( ) ; if ( origExcludes == null || origExcludes . length == 0 ) { return defaultExcludes ; } String [ ] result = new String [ origExcludes . length + defaultExcludes . length ] ; System . arraycopy ( origExcludes , 0 , result , 0 , origExcludes . length ) ; System . arraycopy ( defaultExcludes , 0 , result , origExcludes . length , defaultExcludes . length ) ; return result ; }
Calculates the exclusions to use when searching files.