public void addIncludesToChain ( String chain , List < String > includes , boolean recursive , boolean setToReader , boolean setToWriter ) { long startTime = System . currentTimeMillis ( ) ; Exception exception = null ; if ( cfg . exists ( ) ) { userDir = new File ( System . getProperty ( "user.dir" ) ) . getAbsolutePath ( ) ; System . setProperty ( "user.dir" , options . getExecutionDirectory ( ) . getAbsolutePath ( ) ) ; try { ConfigurationManager manager = new ConfigurationManager ( cfg , false ) ; manager . getProjectConfigurationProvider ( ) . addIncludesToChain ( chain , includes , recursive , setToReader , setToWriter ) ; } catch ( Exception e ) { exception = e ; } finally { System . setProperty ( "user.dir" , userDir ) ; updateMsg ( startTime , exception ) ; } } }
Adds a list of includes rules into a chain