Tabnine Logo
Directory.fromIOFile
Code IndexAdd Tabnine to your IDE (free)

How to use
fromIOFile
method
in
org.sonar.api.resources.Directory

Best Java code snippets using org.sonar.api.resources.Directory.fromIOFile (Showing top 4 results out of 315)

origin: fabriciocolombo/sonar-delphi

public Directory getDirectory(java.io.File dir, Project module) {
 Directory directory = Directory.fromIOFile(dir, module);
 if (directory == null || directory.getKey() == null) {
  return Directory.create(DEFAULT_PACKAGE_NAME);
 }
 return directory;
}
origin: org.codehaus.sonar-plugins.java/sonar-java-plugin

 private void initSetOfDirs(Project project) {
  dirsWithoutPackageInfo = Sets.newHashSet();
  ActiveRule activeRule = rulesProfile.getActiveRule(CheckList.REPOSITORY_KEY, PackageInfoCheck.RULE_KEY);
  if (activeRule != null) {
   CodeVisitor check = checkInstanceOf(activeRule.getRule().ruleKey());
   if (check != null) {
    Set<File> dirs = ((PackageInfoCheck) check).getDirectoriesWithoutPackageFile();
    for (File dir : dirs) {
     dirsWithoutPackageInfo.add(Directory.fromIOFile(dir, project));
    }
   }
  }
 }
}
origin: org.codehaus.sonar/sonar-batch

Bucket b = getBucket(isDir ? Directory.fromIOFile(abs, getProject()) : File.fromIOFile(abs, getProject()));
if (b != null) {
 return b;
origin: org.sonarsource.sonarqube/sonar-batch

java.io.File dirOrFile = pathResolver.relativeFile(projectDef.getBaseDir(), src);
java.io.File abs = new java.io.File(dirOrFile, relativePathFromSourceDir);
Bucket b = getBucket(isDir ? Directory.fromIOFile(abs, getProject()) : File.fromIOFile(abs, getProject()));
if (b != null) {
 return b;
org.sonar.api.resourcesDirectoryfromIOFile

Popular methods of Directory

  • create
    Internal use only.
  • <init>
  • getKey
  • getPath
  • parseKey
  • relativePathFromSourceDir
    Internal.
  • add
  • closeDirectory
  • delete
  • equals
  • inDirectory
  • normalize
  • inDirectory,
  • normalize,
  • setKey,
  • setPath

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • getContentResolver (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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