Tabnine Logo
GradleProject.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
meghanada.project.gradle.GradleProject
constructor

Best Java code snippets using meghanada.project.gradle.GradleProject.<init> (Showing top 3 results out of 315)

origin: mopemope/meghanada-server

@Before
public void setUp() throws Exception {
 if (this.project == null) {
  System.setProperty("meghanada.test", "true");
  this.projectRoot = new File("./").getCanonicalFile();
  // this.projectRoot = new File("./").getCanonicalFile();
  this.projectRootPath = this.projectRoot.getCanonicalPath();
  this.project = new GradleProject(projectRoot);
  String tmpdir = System.getProperty("java.io.tmpdir");
  File tmpParent = new File(tmpdir);
  if (!tmpParent.exists() && !tmpParent.mkdirs()) {
   log.warn("fail create tmpdir");
  }
  final File tempDir = Files.createTempDir();
  tempDir.deleteOnExit();
  final String path = tempDir.getCanonicalPath();
  System.setProperty(TEMP_PROJECT_SETTING_DIR, path);
 }
}
origin: mopemope/meghanada-server

@SuppressWarnings("CheckReturnValue")
public static void setupProject(boolean useCache) throws Exception {
 if (useCache) {
  System.setProperty("meghanada.source.cache", "true");
 } else {
  System.setProperty("meghanada.source.cache", "false");
 }
 if (project == null) {
  final File tempDir = Files.createTempDir();
  tempDir.deleteOnExit();
  final String path = tempDir.getCanonicalPath();
  System.setProperty(TEMP_PROJECT_SETTING_DIR, path);
  log.info("create database {}", path);
  // replace tmp
  File f = new File("./").getCanonicalFile();
  Project newProject = new GradleProject(f);
  project = newProject.parseProject(f, f).mergeFromProjectConfig();
 }
 Config config = Config.load();
 if (useCache) {
  config.update("source-cache", true);
 } else {
  config.update("source-cache", false);
 }
 log.info("finish setupProject");
}
origin: mopemope/meghanada-server

switch (targetFile) {
 case Project.GRADLE_PROJECT_FILE:
  project = new GradleProject(projectRoot);
  break;
 case Project.MVN_PROJECT_FILE:
meghanada.project.gradleGradleProject<init>

Popular methods of GradleProject

  • analyzeDependencies
  • compileJava
  • compileTestJava
  • convertName
  • getAndroidApiVersion
  • getAndroidModelVersion
  • getDependencies
  • getName
  • getOutput
  • getProjectConnection
  • getProjectRoot
  • getResources
  • getProjectRoot,
  • getResources,
  • getSources,
  • getTempPath,
  • getTestOutput,
  • getTestResources,
  • getTestSources,
  • getTmpDir,
  • initialize

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JButton (javax.swing)
  • 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