src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java
protected AndroidDebugBridge initAndroidDebugBridge() throws MojoExecutionException
    {
        synchronized ( ADB_LOCK )
        {
            if ( ! adbInitialized )
            {
                DdmPreferences.setTimeOut( adbConnectionTimeout );
                AndroidDebugBridge.init( false );
                adbInitialized = true;
            }
            AndroidDebugBridge androidDebugBridge = AndroidDebugBridge
                    .createBridge( getAndroidSdk().getAdbPath(), false );
            waitUntilConnected( androidDebugBridge );
            return androidDebugBridge;
        }
    }
protected AndroidDebugBridge initAndroidDebugBridge() throws MojoExecutionException
    {
        synchronized ( ADB_LOCK )
        {
            if ( ! adbInitialized )
            {
                DdmPreferences.setTimeOut( adbConnectionTimeout );
                AndroidDebugBridge.init( false );
                adbInitialized = true;
            }
            AndroidDebugBridge androidDebugBridge = AndroidDebugBridge
                    .createBridge( getAndroidSdk().getAdbPath(), false );
            waitUntilConnected( androidDebugBridge );
            return androidDebugBridge;
        }
    }
protected AndroidDebugBridge initAndroidDebugBridge ( ) throws MojoExecutionException { synchronized ( ADB_LOCK ) { if ( ! adbInitialized ) { DdmPreferences . setTimeOut ( adbConnectionTimeout ) ; AndroidDebugBridge . init ( false ) ; adbInitialized = true ; } AndroidDebugBridge androidDebugBridge = AndroidDebugBridge . createBridge ( getAndroidSdk ( ) . getAdbPath ( ) , false ) ; waitUntilConnected ( androidDebugBridge ) ; return androidDebugBridge ; } }
Initialize the Android Debug Bridge and wait for it to start. Does not reinitialize it if it has
already been initialized (that would through and IllegalStateException...). Synchronized sine
the init call in the library is also synchronized .. just in case.
Initialize the Android Debug Bridge and wait for it to start . Does not reinitialize it if it has already been initialized ( that would through and IllegalStateException ... ) . Synchronized sine the init call in the library is also synchronized .. just in case .