org.gradle.api.tasks.bundling.Zip.setDestinationDir()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中org.gradle.api.tasks.bundling.Zip.setDestinationDir()方法的一些代码示例,展示了Zip.setDestinationDir()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zip.setDestinationDir()方法的具体详情如下:
包路径:org.gradle.api.tasks.bundling.Zip
类名称:Zip
方法名:setDestinationDir

Zip.setDestinationDir介绍

暂无

代码示例

代码示例来源:origin: com.amazon.device.tools.build/gradle-core

@Override
public void setOutputFile(@NonNull File file) {
  packageLibTask.setDestinationDir(file.getParentFile());
  packageLibTask.setArchiveName(file.getName());
}

代码示例来源:origin: com.android.tools.build/gradle-core

@Override
public void setOutputFile(@NonNull File file) {
  packageLibTask.setDestinationDir(file.getParentFile());
  packageLibTask.setArchiveName(file.getName());
}

代码示例来源:origin: gradle.plugin.com.banderous.getpack/plugin

@Override
  public void execute(Zip zip) {
   zip.dependsOn("launchUnity");
   zip.from(files);
   zip.setIncludeEmptyDirs(false);
   zip.into("Assets");
   zip.setBaseName(pkg.getName());
   zip.setVersion(pkg.getVersion());
   zip.setDestinationDir(project.getBuildDir());
  }
});

代码示例来源:origin: gradle.plugin.mpern.sap.commerce/commerce-gradle-plugin

z.into(packageName);
  z.setBaseName(packageName);
  z.setDestinationDir(extension.getDistributionFolder().getAsFile().get());
});

代码示例来源:origin: com.amazon.device.tools.build/gradle-core

bundle.setDestinationDir(new File(variantScope.getGlobalScope().getOutputsDir(), "aar"));
bundle.setArchiveName(project.getName() + "-" + variantConfig.getBaseName() + "."
    + BuilderConstants.EXT_LIB_ARCHIVE);

代码示例来源:origin: MinecraftForge/ForgeGradle

installer.setClassifier("installer");
installer.setExtension("jar");
installer.setDestinationDir(new File(DIR_OUTPUT));
installer.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE);
combineRes.setDestinationDir(out.getParentFile());
combineRes.setArchiveName(out.getName());
combineRes.setIncludeEmptyDirs(false);
packagePatches.setDestinationDir(out.getParentFile());
packagePatches.setArchiveName(out.getName());
packagePatches.from(delayedFile(DIR_USERDEV_PATCHES));
userdev.setClassifier("userdev");
userdev.setExtension("jar");
userdev.setDestinationDir(new File(DIR_OUTPUT));
userdev.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE);

代码示例来源:origin: com.android.tools.build/gradle-core

bundle.setDestinationDir(variantScope.getOutputBundleFile().getParentFile());
bundle.setArchiveName(variantScope.getOutputBundleFile().getName());
bundle.setExtension(BuilderConstants.EXT_LIB_ARCHIVE);

相关文章