congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FileResource.traverse
Code IndexAdd Tabnine to your IDE (free)

How to use
traverse
method
in
aQute.bnd.osgi.FileResource

Best Java code snippets using aQute.bnd.osgi.FileResource.traverse (Showing top 6 results out of 315)

origin: biz.aQute/bndlib

public static void build(Jar jar, File directory, Pattern doNotCopy) {
  traverse(jar, directory.getAbsolutePath().length(), directory, doNotCopy);
}
origin: biz.aQute.bnd/bndlib

public static void build(Jar jar, File directory, Pattern doNotCopy) {
  traverse(jar, directory.getAbsolutePath().length(), directory, doNotCopy);
}
origin: biz.aQute.bnd/bnd

public static void build(Jar jar, File directory, Pattern doNotCopy) {
  traverse(jar, directory.getAbsolutePath().length(), directory, doNotCopy);
}
origin: biz.aQute/bndlib

static void traverse(Jar jar, int rootlength, File directory, Pattern doNotCopy) {
  if (doNotCopy != null && doNotCopy.matcher(directory.getName()).matches())
    return;
  jar.updateModified(directory.lastModified(), "Dir change");
  File files[] = directory.listFiles();
  for (int i = 0; i < files.length; i++) {
    if (files[i].isDirectory())
      traverse(jar, rootlength, files[i], doNotCopy);
    else {
      String path = files[i].getAbsolutePath().substring(rootlength + 1);
      if (File.separatorChar != '/')
        path = path.replace(File.separatorChar, '/');
      jar.putResource(path, new FileResource(files[i]), true);
    }
  }
}
origin: biz.aQute.bnd/bndlib

static void traverse(Jar jar, int rootlength, File directory, Pattern doNotCopy) {
  if (doNotCopy != null && doNotCopy.matcher(directory.getName()).matches())
    return;
  jar.updateModified(directory.lastModified(), "Dir change " + directory);
  File files[] = directory.listFiles();
  for (int i = 0; i < files.length; i++) {
    if (files[i].isDirectory())
      traverse(jar, rootlength, files[i], doNotCopy);
    else {
      String path = files[i].getAbsolutePath().substring(rootlength + 1);
      if (File.separatorChar != '/')
        path = path.replace(File.separatorChar, '/');
      jar.putResource(path, new FileResource(files[i]), true);
    }
  }
}
origin: biz.aQute.bnd/bnd

static void traverse(Jar jar, int rootlength, File directory, Pattern doNotCopy) {
  if (doNotCopy != null && doNotCopy.matcher(directory.getName()).matches())
    return;
  jar.updateModified(directory.lastModified(), "Dir change " + directory);
  File files[] = directory.listFiles();
  for (int i = 0; i < files.length; i++) {
    if (files[i].isDirectory())
      traverse(jar, rootlength, files[i], doNotCopy);
    else {
      String path = files[i].getAbsolutePath().substring(rootlength + 1);
      if (File.separatorChar != '/')
        path = path.replace(File.separatorChar, '/');
      jar.putResource(path, new FileResource(files[i]), true);
    }
  }
}
aQute.bnd.osgiFileResourcetraverse

Popular methods of FileResource

  • <init>
  • deleteOnClose
  • build
  • copy
  • buffer
  • getFile

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
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