public static void load(File file)
    {
        try(FileInputStream inputStream = new FileInputStream(file))
        {
            LineIterator it = IOUtils.lineIterator(inputStream, "UTF-8");
            while (it.hasNext())
            {
                String line = it.next();
                if (!line.startsWith("#") && !line.trim().isEmpty())
                {
                    add(line);
                }
            }
        }
        catch (Exception e)
        {
            throw new WindupException("Failed loading archive ignore patterns from [" + file.toString() + "]", e);
        }
    }
public static void load ( File file ) { try ( FileInputStream inputStream = new FileInputStream ( file ) ) { LineIterator it = IOUtils . lineIterator ( inputStream , "UTF-8" ) ; while ( it . hasNext ( ) ) { String line = it . next ( ) ; if ( ! line . startsWith ( "#" ) && ! line . trim ( ) . isEmpty ( ) ) { add ( line ) ; } } } catch ( Exception e ) { throw new WindupException ( "Failed loading archive ignore patterns from [" + file . toString ( ) + "]" , e ) ; } }
Load the given configuration file.