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

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

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

Zip.getArchivePath介绍

暂无

代码示例

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

@Nullable
@Override
public File getOutputFile() {
  return packageLibTask == null ? null : packageLibTask.getArchivePath();
}

代码示例来源:origin: gradle.plugin.com.enonic.xp/xp-gradle-plugin

private void createPublish2DocTask()
{
  final Publish2DocTask task = this.project.getTasks().create( "publish2Doc", Publish2DocTask.class );
  task.setGroup( GROUP );
  task.setZipFile( ( (Zip) this.project.getTasks().getByName( ZIP_DOC_TASK ) ).getArchivePath() );
}

代码示例来源:origin: gradle.plugin.com.enonic.gradle/xp-gradle-plugin

private void createPublish2DocTask()
{
  final Publish2DocTask task = this.project.getTasks().create( "publish2Doc", Publish2DocTask.class );
  task.setGroup( GROUP );
  task.setZipFile( ( (Zip) this.project.getTasks().getByName( ZIP_DOC_TASK ) ).getArchivePath() );
}

代码示例来源:origin: gradle.plugin.com.github.gradle-lean/gradle-lean

@TaskAction
void taskAction() throws Exception {
  final Path zipArchivePath = zipTask.getArchivePath().toPath();
  logger.debug("Try to lean archive '{}'", zipArchivePath);
  final Path minZipPath = genMinZipPath(zipArchivePath);
  try {
    Files.copy(zipArchivePath, minZipPath, StandardCopyOption.REPLACE_EXISTING);
    FsUtils.onZipFileSystem(minZipPath, rootPath -> { //todo: try to remove hardcoded 'lib'
      final Path libDir = rootPath.resolve(FilenameUtils.getBaseName(zipArchivePath.toString())).resolve("lib");
      final Path archivePath = jarTask.getArchivePath().toPath();
      Minimizer.newInstance(this).minimize(archivePath, libDir);
    });
    logger.debug("Archive '{}' leaning completed.", zipArchivePath);
  }catch (final Exception e){
    logger.error("Archive '{}' leaning failed:", zipArchivePath, e);
    Files.deleteIfExists(minZipPath);
    throw e;
  }
}

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

@NonNull
@Override
public File getOutputFile() {
  return packageLibTask == null
      ? getScope().getVariantScope().getOutputBundleFile()
      : packageLibTask.getArchivePath();
}

代码示例来源:origin: org.gradle/gradle-core

@Override
protected CopyAction createCopyAction() {
  DocumentationRegistry documentationRegistry = getServices().get(DocumentationRegistry.class);
  return new ZipCopyAction(getArchivePath(), getCompressor(), documentationRegistry, metadataCharset, isPreserveFileTimestamps());
}

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

args.put("file", zipPackage.getArchivePath());
args.put("format", "MD5SUM");
args.put("fileext", ".MD5");

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

bundle.getArchivePath(),
new File(variantScope.getGlobalScope().getIntermediatesDir(),
    DIR_BUNDLES + "/" + dirName),

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

bundle.getArchivePath(),
variantData.getName(),
project.getPath(),

相关文章