GooglePlayServices.ResolverVer1_1.FindAndroidSdkTool C# (CSharp) Method

FindAndroidSdkTool() static private method

Find a tool in the Android SDK.
static private FindAndroidSdkTool ( PlayServicesSupport svcSupport, string toolName ) : string
svcSupport Google.JarResolver.PlayServicesSupport PlayServicesSupport instance used to retrieve the SDK /// path.
toolName string Name of the tool to search for.
return string
        internal static string FindAndroidSdkTool(PlayServicesSupport svcSupport, string toolName)
        {
            string toolPath = null;
            string sdkPath = svcSupport.SDK;
            if (sdkPath == null || sdkPath == "")
            {
                Debug.LogWarning(PlayServicesSupport.AndroidSdkConfigurationError +
                                 "  Will fallback to searching for " + toolName +
                                 " in the system path.");
            }
            else
            {
                toolPath = Path.Combine(
                    sdkPath, Path.Combine(
                        "tools", toolName + CommandLine.GetExecutableExtension()));
            }
            if (toolPath == null || !File.Exists(toolPath))
            {
                toolPath = CommandLine.FindExecutable(toolName);
            }
            return toolPath;
        }