private void copyLibraryElementsToClasspath ( Library library ) { Collection < File > files = library . getFiles ( ) ; addToClassPath ( library . getContainers ( ) ) ; if ( files != null && ! ! ! files . isEmpty ( ) ) { for ( File file : files ) { nativeLibraryFiles . add ( file ) ; } } for ( Fileset fileset : library . getFilesets ( ) ) { for ( File file : fileset . getFileset ( ) ) { nativeLibraryFiles . add ( file ) ; } } }
Takes the Files and Folders from the Library and adds them to the various classloader classpaths