aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/java/jarjar/jarjar-gradle/src/main/java/org/anarres/gradle/plugin/jarjar/JarjarArchiveTask.java
blob: 8824b4a7b2dc75fe9d1ed18b4b424cd00792b07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anarres.gradle.plugin.jarjar;

import groovy.lang.Closure;
import javax.annotation.Nonnull;
import org.gradle.api.internal.DocumentationRegistry;
import org.gradle.api.internal.file.copy.CopyAction;
import org.gradle.api.tasks.bundling.Jar;

/**
 *
 * @author shevek
 */
public class JarjarArchiveTask extends Jar {

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

    public void fromJar(@Nonnull Object... sourcePaths) {
    }

    public void fromJar(@Nonnull Object sourcePath, @Nonnull Closure c) {
    }

}