Search in sources :

Example 1 with JpsModuleReference

use of org.jetbrains.jps.model.module.JpsModuleReference in project android by JetBrains.

the class AndroidFinalPackageElementBuilder method getApkPath.

@Nullable
private static String getApkPath(JpsAndroidFinalPackageElement element) {
    final JpsModuleReference ref = element.getModuleReference();
    final JpsModule module = ref != null ? ref.resolve() : null;
    if (module == null) {
        return null;
    }
    final JpsAndroidModuleExtension extension = AndroidJpsUtil.getExtension(module);
    if (extension == null) {
        return null;
    }
    return getApkPath(extension);
}
Also used : JpsModule(org.jetbrains.jps.model.module.JpsModule) JpsAndroidModuleExtension(org.jetbrains.jps.android.model.JpsAndroidModuleExtension) JpsModuleReference(org.jetbrains.jps.model.module.JpsModuleReference) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

Nullable (org.jetbrains.annotations.Nullable)1 JpsAndroidModuleExtension (org.jetbrains.jps.android.model.JpsAndroidModuleExtension)1 JpsModule (org.jetbrains.jps.model.module.JpsModule)1 JpsModuleReference (org.jetbrains.jps.model.module.JpsModuleReference)1