16 lines
635 B
Java
16 lines
635 B
Java
import java.io.File;
|
|||
|
|
import java.net.URI;
|
||
|
|
import org.gradle.wrapper.PathAssembler;
|
||
|
|
import org.gradle.wrapper.WrapperConfiguration;
|
||
|
|
|
||
|
|
public class WrapperProbe {
|
||
|
|
public static void main(String[] args) throws Exception {
|
||
|
|
WrapperConfiguration config = new WrapperConfiguration();
|
||
|
|
config.setDistribution(URI.create(args[0]));
|
||
|
|
PathAssembler assembler = new PathAssembler(new File(args[1]), new File(args[1]));
|
||
|
|
PathAssembler.LocalDistribution local = assembler.getDistribution(config);
|
||
|
|
System.out.println(local.getDistributionDir().getAbsolutePath());
|
||
|
|
System.out.println(local.getZipFile().getAbsolutePath());
|
||
|
|
}
|
||
|
|
}
|