Codota Logo
io.tesla.proviso.archive
Code IndexAdd Codota to your IDE (free)

How to use io.tesla.proviso.archive

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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: io.takari/takari-archiver

 @Override
 public void writeEntry(OutputStream outputStream) throws IOException {
  entry.writeEntry(outputStream);
 }
}
origin: io.takari/takari-archiver

 public UnArchiver build() {
  return new UnArchiver(includes, excludes, useRoot, flatten, posixLongFileMode);
 }
}
origin: io.takari.maven.plugins/takari-lifecycle-plugin

private void archive(File jar, List<Iterable<Entry>> sources) throws IOException {
 Archiver archiver = Archiver.builder() //
   .useRoot(false) //
   .normalize(true) //
   .build();
 archiver.archive(jar, new AggregateSource(sources));
 if (logger.isDebugEnabled()) {
  int size = 0;
  for (Iterable<?> source : sources) {
   size += size(source);
  }
  logger.debug("Created archive {} with {} entries", jar, size);
 }
}
origin: io.takari/takari-archiver

 @Override
 public ExtendedArchiveEntry createEntryFor(String entryName, Entry archiveEntry, boolean isExecutable) {
  ExtendedArchiveEntry entry = newEntry(entryName, archiveEntry);
  entry.setSize(archiveEntry.getSize());
  //
  // If we have a valid file mode then use it for the entry we are creating
  if (archiveEntry.getFileMode() != -1) {
   entry.setFileMode(archiveEntry.getFileMode());
   if (isExecutable) {
    entry.setFileMode(FileMode.makeExecutable(entry.getFileMode()));
   }
  } else {
   if (isExecutable) {
    entry.setFileMode(FileMode.EXECUTABLE_FILE.getBits());
   }
  }
  return entry;
 }
}
origin: io.takari/takari-archiver

public void archive(File archive, File... sourceDirectories) throws IOException {
 archive(archive, new DirectorySource(sourceDirectories));
}
origin: io.takari.maven.plugins/takari-lifecycle-plugin

 @Override
 public boolean apply(Entry input) {
  return entryNames.add(input.getName());
 }
};
origin: io.takari/takari-archiver

public ArchiverBuilder executable(String... executables) {
 return executable(ImmutableList.copyOf(executables));
}
origin: io.takari/takari-archiver

public TarGzArchiveSource(File archive) {
 closer = Closer.create();
 try {
  archiveInputStream = closer.register(ArchiverHelper.getArchiveHandler(archive, false).getInputStream());
 } catch (IOException e) {
  throw new RuntimeException(String.format("Cannot determine the type of archive %s.", archive), e);
 }
}
origin: io.takari/takari-archiver

private void writeEntry(ExtendedArchiveEntry entry, ArchiveOutputStream aos) throws IOException {
 aos.putArchiveEntry(entry);
 if (!entry.isDirectory()) {
  entry.writeEntry(aos);
 }
 aos.closeArchiveEntry();
}
origin: io.takari/takari-archiver

public UnArchiver(List<String> includes, List<String> excludes, boolean useRoot, boolean flatten, boolean posixLongFileMode) {
 this.useRoot = useRoot;
 this.flatten = flatten;
 this.selector = new Selector(includes, excludes);
 this.posixLongFileMode = posixLongFileMode;
}
origin: io.takari/takari-archiver

 public Archiver build() {
  return new Archiver(includes, excludes, executables, useRoot, flatten, normalize, prefix, posixLongFileMode);
 }
}
origin: io.takari/takari-archiver

public static UnArchiverBuilder builder() {
 return new UnArchiverBuilder();
}
origin: io.takari/takari-archiver

public static ArchiverBuilder builder() {
 return new ArchiverBuilder();
}
origin: io.takari/takari-archiver

/**
 * Returns the time for a new Jar file entry in milliseconds since the epoch. Uses {@link JarCreator#DOS_EPOCH_IN_JAVA_TIME} for normalized entries, {@link System#currentTimeMillis()} otherwise.
 *
 * @param filename The name of the file for which we are entering the time
 * @return the time for a new Jar file entry in milliseconds since the epoch.
 */
private long newEntryTimeMillis(String filename) {
 return normalize ? normalizedTimestamp(filename) : System.currentTimeMillis();
}
origin: io.takari/takari-archiver

public ArchiverBuilder includes(String... includes) {
 return includes(ImmutableList.copyOf(includes));
}
origin: io.takari/takari-archiver

public ArchiverBuilder excludes(String... excludes) {
 return excludes(ImmutableList.copyOf(excludes));
}
origin: io.takari/takari-archiver

 @Override
 public void writeEntry(OutputStream outputStream) throws IOException {
  entry.writeEntry(outputStream);
 }
}
origin: takari/takari-lifecycle

 @Override
 public boolean apply(Entry input) {
  return entryNames.add(input.getName());
 }
};
origin: io.takari/takari-archiver

private Archiver(List<String> includes,
         List<String> excludes,
         List<String> executables,
         boolean useRoot,
         boolean flatten,
         boolean normalize,
         String prefix,
         boolean posixLongFileMode) {
 this.executables = executables;
 this.useRoot = useRoot;
 this.flatten = flatten;
 this.normalize = normalize;
 this.prefix = prefix;
 this.posixLongFileMode = posixLongFileMode;
 this.selector = new Selector(includes, excludes);
}
io.tesla.proviso.archive

Most used classes

  • UnArchiver$UnArchiverBuilder
  • UnArchiver
  • Archiver$ArchiverBuilder
  • Archiver
  • Entry
  • ArchiveHandler,
  • ArchiveHandlerSupport,
  • ArchiverHelper,
  • ExtendedArchiveEntry,
  • Selector,
  • Source,
  • UnArchiver$NoopEntryProcessor,
  • UnarchivingEntryProcessor,
  • FileMode,
  • ModeParser,
  • PermissionsSet,
  • PosixModes,
  • DirectoryEntry,
  • DirectorySource$DirectoryEntryIterator
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now