Tabnine Logo
UnArchiver.builder
Code IndexAdd Tabnine to your IDE (free)

How to use
builder
method
in
io.tesla.proviso.archive.UnArchiver

Best Java code snippets using io.tesla.proviso.archive.UnArchiver.builder (Showing top 5 results out of 315)

origin: io.provis/provisio-core

public SimpleProvisioner(File localRepository, String remoteRepository) {
 this.localRepository = localRepository;
 this.remoteRepositoryUrl = remoteRepository;
 this.unarchiver = UnArchiver.builder().useRoot(false).flatten(false).build();
}
origin: takari/takari-maven-plugin

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
 //
 // Fetch the latest wrapper archive
 // Unpack it in the current working project
 // Possibly interpolate the latest version of Maven in the wrapper properties
 //
 File localRepository = new File(System.getProperty("user.home"), ".m2/repository");
 String artifactPath = String.format("io/takari/maven-wrapper/%s/maven-wrapper-%s.tar.gz", version, version);
 String wrapperUrl = String.format("https://repo1.maven.org/maven2/%s", artifactPath);
 File destination = new File(localRepository, artifactPath);
 Downloader downloader = new DefaultDownloader("mvnw", version);
 try {
  downloader.download(new URI(wrapperUrl), destination);
  UnArchiver unarchiver = UnArchiver.builder().useRoot(false).build();
  Path rootDirectory = Paths.get(session.getExecutionRootDirectory());
  unarchiver.unarchive(destination, rootDirectory.toFile());
  overwriteDistributionUrl(rootDirectory, getDistributionUrl());
  getLog().info("");
  getLog().info("The Maven Wrapper version " + version + " has been successfully setup for your project.");
  getLog().info("Using Apache Maven " + maven);
  getLog().info("");
 } catch (Exception e) {
  throw new MojoExecutionException("Error installing the maven-wrapper archive.", e);
 }
}
origin: io.provis/provisio-jenkins

UnArchiver unarchiver = UnArchiver.builder().build();
for (String plugin : context.getPlugins()) {
 File pluginsDirectory = new File(workDirectory, "plugins");
origin: io.provis/provisio-core

try {
 UnArchiver unarchiver = UnArchiver.builder()
  .build();
 File unpackDirectory = new File(outputDirectory, "unpack");
origin: io.provis/provisio-core

@Override
public void execute(ProvisioningContext context) {
 if (!outputDirectory.exists()) {
  outputDirectory.mkdirs();
 }
 File archive = artifact.getFile();
 try {
  UnArchiver unarchiver = UnArchiver.builder()
   .includes(split(includes))
   .excludes(split(excludes))
   .useRoot(useRoot)
   .flatten(flatten)
   .build();
  if (filter) {
   unarchiver.unarchive(archive, outputDirectory, new StandardFilteringProcessor(context.getVariables()));
  } else if (mustache) {
   unarchiver.unarchive(archive, outputDirectory, new MustacheFilteringProcessor(context.getVariables()));
  } else {
   unarchiver.unarchive(archive, outputDirectory);
  }
 } catch (IOException e) {
  throw new RuntimeException(e);
 }
}
io.tesla.proviso.archiveUnArchiverbuilder

Popular methods of UnArchiver

  • unarchive
  • <init>
  • createDir
  • setFilePermissions

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JComboBox (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now