public void output ( ) { if ( ( m_OutputFile == null || m_OutputFile . isDirectory ( ) ) ) { for ( String dep : m_Dependencies ) System . out . println ( dep ) ; } else { try { Files . write ( m_OutputFile . toPath ( ) , m_Dependencies , StandardOpenOption . CREATE , StandardOpenOption . TRUNCATE_EXISTING ) ; } catch ( Exception e ) { System . err . println ( "Failed to write dependencies to: " + m_OutputFile ) ; e . printStackTrace ( ) ; } } }
Outputs the dependencies on stdout .