protected void addSharedLibraries( JarArchiver jarArchiver, File directory, String architecture ) {
    """
	Adds all shared libraries (.so) to a {@link JarArchiver} under 'libs'.
	
	@param jarArchiver The jarArchiver to add files to
	@param directory   The directory to scan for .so files
	@param architecture      The prefix for where in the jar the .so files will go.
    """
        getLog().debug( "Searching for shared libraries in " + directory );
        File[] libFiles = directory.listFiles( new FilenameFilter()
        {
            public boolean accept( final File dir, final String name )
            {
                return name.startsWith( "lib" ) && name.endsWith( ".so" );
            }
        } );

        if ( libFiles != null )
        {
            for ( File libFile : libFiles )
            {
                String dest = NATIVE_LIBRARIES_FOLDER + "/" + architecture + "/" + libFile.getName();
                getLog().debug( "Adding " + libFile + " as " + dest );
                jarArchiver.addFile( libFile, dest );
            }
        }
    }
protected void addSharedLibraries( JarArchiver jarArchiver, File directory, String architecture )
    {
        getLog().debug( "Searching for shared libraries in " + directory );
        File[] libFiles = directory.listFiles( new FilenameFilter()
        {
            public boolean accept( final File dir, final String name )
            {
                return name.startsWith( "lib" ) && name.endsWith( ".so" );
            }
        } );

        if ( libFiles != null )
        {
            for ( File libFile : libFiles )
            {
                String dest = NATIVE_LIBRARIES_FOLDER + "/" + architecture + "/" + libFile.getName();
                getLog().debug( "Adding " + libFile + " as " + dest );
                jarArchiver.addFile( libFile, dest );
            }
        }
    }
protected void addSharedLibraries ( JarArchiver jarArchiver , File directory , String architecture ) { getLog ( ) . debug ( "Searching for shared libraries in " + directory ) ; File [ ] libFiles = directory . listFiles ( new FilenameFilter ( ) { public boolean accept ( final File dir , final String name ) { return name . startsWith ( "lib" ) && name . endsWith ( ".so" ) ; } } ) ; if ( libFiles != null ) { for ( File libFile : libFiles ) { String dest = NATIVE_LIBRARIES_FOLDER + "/" + architecture + "/" + libFile . getName ( ) ; getLog ( ) . debug ( "Adding " + libFile + " as " + dest ) ; jarArchiver . addFile ( libFile , dest ) ; } } }
Adds all shared libraries (.so) to a {@link JarArchiver} under 'libs'.

@param jarArchiver The jarArchiver to add files to
@param directory   The directory to scan for .so files
@param architecture      The prefix for where in the jar the .so files will go.
Adds all shared libraries ( . so ) to a { @link JarArchiver } under libs .