private void restoreExcludesFile ( File excludesFileFile ) throws MojoExecutionException { if ( ! excludesFileFile . exists ( ) ) { return ; } try { String [ ] lines = FileUtil . readLines ( excludesFileFile ) ; List < String > newLines = new ArrayList < String > ( ) ; for ( String line : lines ) { if ( line . equals ( EKSTAZI_LINE_MARKER ) ) break ; newLines . add ( line ) ; } FileUtil . writeLines ( excludesFileFile , newLines ) ; } catch ( IOException ex ) { throw new MojoExecutionException ( "Could not restore 'excludesFile'" , ex ) ; } }
Removes lines from excludesFile that are added by Ekstazi .