private void copyGdbServer( File destinationDirectory, String architecture ) throws MojoExecutionException
    {

        try
        {
            final File destDir = new File( destinationDirectory, architecture );
            if ( destDir.exists() )
            {
                // Copy the gdbserver binary to libs/<architecture>/
                final File gdbServerFile = getAndroidNdk().getGdbServer( architecture );
                final File destFile = new File( destDir, "gdbserver" );
                if ( ! destFile.exists() )
                {
                    getLog().debug( "Copying gdbServer to " + destFile );
                    FileUtils.copyFile( gdbServerFile, destFile );
                }
                else
                {
                    getLog().info( "Note: gdbserver binary already exists at destination, will not copy over" );
                }
            }
        }
        catch ( Exception e )
        {
            getLog().error( "Error while copying gdbserver: " + e.getMessage(), e );
            throw new MojoExecutionException( "Error while copying gdbserver: " + e.getMessage(), e );
        }

    }
private void copyGdbServer( File destinationDirectory, String architecture ) throws MojoExecutionException
    {

        try
        {
            final File destDir = new File( destinationDirectory, architecture );
            if ( destDir.exists() )
            {
                
                final File gdbServerFile = getAndroidNdk().getGdbServer( architecture );
                final File destFile = new File( destDir, "gdbserver" );
                if ( ! destFile.exists() )
                {
                    getLog().debug( "Copying gdbServer to " + destFile );
                    FileUtils.copyFile( gdbServerFile, destFile );
                }
                else
                {
                    getLog().info( "Note: gdbserver binary already exists at destination, will not copy over" );
                }
            }
        }
        catch ( Exception e )
        {
            getLog().error( "Error while copying gdbserver: " + e.getMessage(), e );
            throw new MojoExecutionException( "Error while copying gdbserver: " + e.getMessage(), e );
        }

    }
private void copyGdbServer ( File destinationDirectory , String architecture ) throws MojoExecutionException { try { final File destDir = new File ( destinationDirectory , architecture ) ; if ( destDir . exists ( ) ) { // Copy the gdbserver binary to libs/<architecture>/ final File gdbServerFile = getAndroidNdk ( ) . getGdbServer ( architecture ) ; final File destFile = new File ( destDir , "gdbserver" ) ; if ( ! destFile . exists ( ) ) { getLog ( ) . debug ( "Copying gdbServer to " + destFile ) ; FileUtils . copyFile ( gdbServerFile , destFile ) ; } else { getLog ( ) . info ( "Note: gdbserver binary already exists at destination, will not copy over" ) ; } } } catch ( Exception e ) { getLog ( ) . error ( "Error while copying gdbserver: " + e . getMessage ( ) , e ) ; throw new MojoExecutionException ( "Error while copying gdbserver: " + e . getMessage ( ) , e ) ; } }
Copy the Ndk GdbServer into the architecture output folder if the folder exists but the GdbServer doesn't.
Copy the Ndk GdbServer into the architecture output folder if the folder exists but the GdbServer doesn t .