Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
59,900 | void (String rootProjectName) { myRootProjectName = rootProjectName; } | setRootProjectName |
59,901 | String () { return myRootPath; } | getRootPath |
59,902 | void (String rootPath) { myRootPath = rootPath; } | setRootPath |
59,903 | String () { return myParentRootPath; } | getParentRootPath |
59,904 | void (String parentRootPath) { myParentRootPath = parentRootPath; } | setParentRootPath |
59,905 | Set<String> () { return myProjects; } | getProjects |
59,906 | void (@NotNull Set<String> projects) { myProjects = projects; } | setProjects |
59,907 | BuildParticipant () { BuildParticipant result = new BuildParticipant(); result.myRootProjectName = myRootProjectName; result.myRootPath = myRootPath; result.myProjects = new HashSet<>(myProjects); return result; } | copy |
59,908 | boolean () { return useCompileDaemon; } | isUseCompileDaemon |
59,909 | void (boolean useCompileDaemon) { this.useCompileDaemon = useCompileDaemon; } | setUseCompileDaemon |
59,910 | String () { return daemonServer; } | getDaemonServer |
59,911 | void (String daemonServer) { this.daemonServer = daemonServer; } | setDaemonServer |
59,912 | boolean () { return failOnError; } | isFailOnError |
59,913 | void (boolean failOnError) { this.failOnError = failOnError; } | setFailOnError |
59,914 | boolean () { return deprecation; } | isDeprecation |
59,915 | void (boolean deprecation) { this.deprecation = deprecation; } | setDeprecation |
59,916 | boolean () { return unchecked; } | isUnchecked |
59,917 | void (boolean unchecked) { this.unchecked = unchecked; } | setUnchecked |
59,918 | String () { return debugLevel; } | getDebugLevel |
59,919 | void (String debugLevel) { this.debugLevel = debugLevel; } | setDebugLevel |
59,920 | boolean () { return optimize; } | isOptimize |
59,921 | void (boolean optimize) { this.optimize = optimize; } | setOptimize |
59,922 | String () { return encoding; } | getEncoding |
59,923 | void (String encoding) { this.encoding = encoding; } | setEncoding |
59,924 | String () { return force; } | getForce |
59,925 | void (String force) { this.force = force; } | setForce |
59,926 | String () { return targetCompatibility; } | getTargetCompatibility |
59,927 | void (String targetCompatibility) { this.targetCompatibility = targetCompatibility; } | setTargetCompatibility |
59,928 | List<String> () { return additionalParameters; } | getAdditionalParameters |
59,929 | void (List<String> additionalParameters) { this.additionalParameters = additionalParameters; } | setAdditionalParameters |
59,930 | boolean () { return listFiles; } | isListFiles |
59,931 | void (boolean listFiles) { this.listFiles = listFiles; } | setListFiles |
59,932 | String () { return loggingLevel; } | getLoggingLevel |
59,933 | void (String loggingLevel) { this.loggingLevel = loggingLevel; } | setLoggingLevel |
59,934 | List<String> () { return loggingPhases; } | getLoggingPhases |
59,935 | void (List<String> loggingPhases) { this.loggingPhases = loggingPhases; } | setLoggingPhases |
59,936 | boolean () { return fork; } | isFork |
59,937 | void (boolean fork) { this.fork = fork; } | setFork |
59,938 | boolean () { return useAnt; } | isUseAnt |
59,939 | void (boolean useAnt) { this.useAnt = useAnt; } | setUseAnt |
59,940 | ScalaForkOptions () { return forkOptions; } | getForkOptions |
59,941 | void (ScalaForkOptions forkOptions) { this.forkOptions = forkOptions; } | setForkOptions |
59,942 | String () { return memoryInitialSize; } | getMemoryInitialSize |
59,943 | void (String memoryInitialSize) { this.memoryInitialSize = memoryInitialSize; } | setMemoryInitialSize |
59,944 | String () { return memoryMaximumSize; } | getMemoryMaximumSize |
59,945 | void (String memoryMaximumSize) { this.memoryMaximumSize = memoryMaximumSize; } | setMemoryMaximumSize |
59,946 | List<String> () { return jvmArgs; } | getJvmArgs |
59,947 | void (List<String> jvmArgs) { this.jvmArgs = jvmArgs; } | setJvmArgs |
59,948 | void () { } | dispose |
59,949 | GradleInstallationManager () { return ApplicationManager.getApplication().getService(GradleInstallationManager.class); } | getInstance |
59,950 | String (Project project) { return project.getLocationHash(); } | getDefaultProjectKey |
59,951 | BuildLayoutParameters (@NotNull Project project) { return getInstance().guessBuildLayoutParameters(project, null); } | defaultBuildLayoutParameters |
59,952 | BuildLayoutParameters (@NotNull Project project, @Nullable String projectPath) { return myBuildLayoutParametersCache.computeIfAbsent(ObjectUtils.notNull(projectPath, getDefaultProjectKey(project)), p -> { for (ExternalSystemExecutionAware executionAware : ExternalSystemExecutionAware.getExtensions(GradleConstants.SYSTE... | guessBuildLayoutParameters |
59,953 | Collection<File> (@Nullable File gradleHome) { if (gradleHome == null || !gradleHome.isDirectory()) { return null; } List<File> result = new ArrayList<>(); File libs = new File(gradleHome, "lib"); File[] files = libs.listFiles(); if (files != null) { for (File file : files) { if (file.getName().endsWith(".jar")) { resu... | getAllLibraries |
59,954 | File (@Nullable Project project, @NotNull String linkedProjectPath) { if (project == null) return null; BuildLayoutParameters buildLayoutParameters = guessBuildLayoutParameters(project, linkedProjectPath); String gradleHome = GradleTargetUtil.maybeGetLocalValue(buildLayoutParameters.getGradleHome()); return gradleHome ... | getGradleHome |
59,955 | File (@Nullable Project project) { File result = getGradleHomeFromPath(project); if (result != null) return result; result = getGradleHomeFromEnvProperty(project); if (result != null) return result; if (SystemInfo.isMac) { return getGradleHomeFromBrew(); } return null; } | getAutodetectedGradleHome |
59,956 | File () { try { try (DirectoryStream<Path> ds = Files.newDirectoryStream(BREW_GRADLE_LOCATION)) { Path bestPath = null; Version highestVersion = null; for (Path path : ds) { String fileName = path.getFileName().toString(); try { Version version = Version.parseVersion(fileName); if (version == null) continue; if (highes... | getGradleHomeFromBrew |
59,957 | String (@NotNull String homePath) { return suggestBetterGradleHomePath(null, homePath); } | suggestBetterGradleHomePath |
59,958 | String (@Nullable Project project, @NotNull String homePath) { Path path = Paths.get(homePath); if (path.startsWith(BREW_GRADLE_LOCATION)) { Path libexecPath = path.resolve(LIBEXEC); File libexecFile = libexecPath.toFile(); if (isGradleSdkHome(project, libexecFile)) { return libexecPath.toString(); } } return null; } | suggestBetterGradleHomePath |
59,959 | File (@Nullable Project project) { Ref<File> ref = myCachedGradleHomeFromPath; if (ref != null) { return ref.get(); } String path = System.getenv("PATH"); if (path == null) { return null; } for (String pathEntry : path.split(File.pathSeparator)) { File dir = new File(pathEntry); if (!dir.isDirectory()) { continue; } fo... | getGradleHomeFromPath |
59,960 | File (@Nullable Project project) { String path = System.getenv(GRADLE_ENV_PROPERTY_NAME); if (path == null) { return null; } File candidate = new File(path); return isGradleSdkHome(project, candidate) ? candidate : null; } | getGradleHomeFromEnvProperty |
59,961 | boolean (@Nullable Project project, @Nullable VirtualFile file) { if (file == null) { return false; } return isGradleSdkHome(project, new File(file.getPath())); } | isGradleSdkHome |
59,962 | boolean (@Nullable File file) { return isGradleSdkHome(null, file); } | isGradleSdkHome |
59,963 | boolean (@Nullable Project project, @Nullable File file) { if (file == null) { return false; } if (project == null) { ProjectManager projectManager = ProjectManager.getInstance(); Project[] openProjects = projectManager.getOpenProjects(); project = openProjects.length > 0 ? openProjects[0] : projectManager.getDefaultPr... | isGradleSdkHome |
59,964 | boolean (@Nullable Project project, String gradleHomePath) { return isGradleSdkHome(project, new File(gradleHomePath)); } | isGradleSdkHome |
59,965 | boolean (VirtualFile @Nullable ... files) { if (files == null) { return false; } File[] arg = new File[files.length]; for (int i = 0; i < files.length; i++) { arg[i] = new File(files[i].getPath()); } return isGradleSdk(arg); } | isGradleSdk |
59,966 | boolean (File @Nullable ... files) { return findGradleJar(files) != null; } | isGradleSdk |
59,967 | File (File @Nullable ... files) { if (files == null) { return null; } for (File file : files) { if (GRADLE_JAR_FILE_PATTERN.matcher(file.getName()).matches()) { return file; } } if (GradleEnvironment.DEBUG_GRADLE_HOME_PROCESSING) { StringBuilder filesInfo = new StringBuilder(); for (File file : files) { filesInfo.appen... | findGradleJar |
59,968 | List<VirtualFile> (@Nullable Project project) { List<File> files = getClassRoots(project, null); if (files == null) return null; final LocalFileSystem localFileSystem = LocalFileSystem.getInstance(); final JarFileSystem jarFileSystem = JarFileSystem.getInstance(); return ContainerUtil.mapNotNull(files, file -> { final ... | getClassRoots |
59,969 | List<File> (@Nullable Project project, @Nullable String rootProjectPath) { if (project == null) return null; if (rootProjectPath == null) { for (Module module : ModuleManager.getInstance(project).getModules()) { rootProjectPath = ExternalSystemModulePropertyManager.getInstance(module).getRootProjectPath(); List<File> r... | getClassRoots |
59,970 | String (@Nullable String gradleHome) { if (gradleHome == null) return null; File libs = new File(gradleHome, "lib"); if (!libs.isDirectory()) return null; File[] files = libs.listFiles(); if (files != null) { for (File file : files) { final Matcher matcher = GRADLE_JAR_FILE_PATTERN.matcher(file.getName()); if (matcher.... | getGradleVersion |
59,971 | List<File> (Project project, String rootProjectPath) { List<File> result = new ArrayList<>(); if (StringUtil.isEmpty(rootProjectPath)) return result; File gradleHome = getGradleHome(project, rootProjectPath); if (gradleHome == null || !gradleHome.isDirectory()) { return result; } File src = new File(gradleHome, "src");... | findGradleSdkClasspath |
59,972 | boolean (File file) { String fileName = file.getName(); return ANY_GRADLE_JAR_FILE_PATTERN.matcher(fileName).matches() || ANT_JAR_PATTERN.matcher(fileName).matches() || IVY_JAR_PATTERN.matcher(fileName).matches() || isGroovyJar(fileName); } | isGradleBuildClasspathLibrary |
59,973 | void (@NotNull List<? super File> result, File @Nullable ... files) { if (files == null) return; for (File file : files) { if (file == null || !file.isDirectory()) continue; result.add(file); } } | addRoots |
59,974 | boolean (@NotNull String name) { name = StringUtil.toLowerCase(name); return name.startsWith("groovy-") && name.endsWith(".jar") && !name.contains("src") && !name.contains("doc"); } | isGroovyJar |
59,975 | GradleVersion (@NotNull GradleProjectSettings settings) { DistributionType distributionType = settings.getDistributionType(); if (distributionType == null) return null; BuildLayoutParameters buildLayoutParameters; Project project = findProject(settings); if (project == null) { Project defaultProject = ProjectManager.ge... | guessGradleVersion |
59,976 | GradleProjectSettings () { return settings; } | getGradleProjectSettings |
59,977 | GradleVersion (@NotNull String path) { path = StringUtil.substringAfterLast(path, "/"); if (path == null) return null; path = StringUtil.substringAfterLast(path, "gradle-"); if (path == null) return null; int i = path.lastIndexOf('-'); if (i <= 0) return null; return getGradleVersionSafe(path.substring(0, i)); } | parseDistributionVersion |
59,978 | GradleVersion (@NotNull String gradleVersion) { try { return GradleVersion.version(gradleVersion); } catch (IllegalArgumentException e) { // GradleVersion.version(gradleVersion) might throw exception for custom Gradle versions // https://youtrack.jetbrains.com/issue/IDEA-216892 return null; } } | getGradleVersionSafe |
59,979 | Project (@NotNull GradleProjectSettings settings) { for (Project project : ProjectManager.getInstance().getOpenProjects()) { GradleProjectSettings linkedProjectSettings = GradleSettings.getInstance(project).getLinkedProjectSettings(settings.getExternalProjectPath()); if (linkedProjectSettings == settings) { return proj... | findProject |
59,980 | void (@NotNull ExternalSystemTaskId id, String workingDir) { getInstance().myBuildLayoutParametersCache.remove(workingDir); } | onStart |
59,981 | void (@NotNull ExternalSystemTaskId id) { // it is not enough to clean up cache on the start of an external event, because sometimes the changes occur `after` the event finishes. // An example of this behavior is the downloading of gradle distribution: // we must not rely on the caches that were computed without downlo... | onEnd |
59,982 | void (@NotNull Project project) { getInstance().myBuildLayoutParametersCache.clear(); } | projectClosed |
59,983 | void (@NotNull IdeaPluginDescriptor pluginDescriptor, boolean isUpdate) { getInstance().myBuildLayoutParametersCache.clear(); } | beforePluginUnload |
59,984 | ExecuteGradleTaskHistoryService (@NotNull Project project) { return project.getService(ExecuteGradleTaskHistoryService.class); } | getInstance |
59,985 | String () { return myCanceledCommand; } | getCanceledCommand |
59,986 | void (@Nullable String canceledCommand) { myCanceledCommand = canceledCommand; } | setCanceledCommand |
59,987 | void (@NotNull String command, @NotNull String projectPath) { myWorkDirectory = projectPath.trim(); command = command.trim(); if (command.length() == 0) return; myHistory.remove(command); myHistory.addFirst(command); while (myHistory.size() > MAX_HISTORY_LENGTH) { myHistory.removeLast(); } } | addCommand |
59,988 | List<String> () { return new ArrayList<>(myHistory); } | getHistory |
59,989 | String () { return myWorkDirectory; } | getWorkDirectory |
59,990 | void (String @NotNull [] state) { if (state.length == 0) { myWorkDirectory = ""; myHistory.clear(); } else { myWorkDirectory = state[0]; myHistory.addAll(Arrays.asList(state).subList(1, state.length)); } } | loadState |
59,991 | void (@NotNull ExternalSystemTaskId id, @NotNull List<String> tasks, @NotNull String projectPath, @NotNull GradleExecutionSettings settings, @Nullable String jvmParametersSetup, @NotNull ExternalSystemTaskNotificationListener listener, @NotNull ProjectConnection connection, @NotNull CancellationTokenSource cancellation... | executeTasks |
59,992 | boolean ( @NotNull ExternalSystemTaskId id, @NotNull String projectPath, @NotNull List<String> tasksAndArguments, @NotNull GradleExecutionSettings settings, @Nullable GradleVersion gradleVersion ) { if (!Registry.is("gradle.testLauncherAPI.enabled")) { LOG.debug("TestLauncher isn't applicable: disabled by registry"); r... | isApplicableTestLauncher |
59,993 | boolean (@NotNull GradleCommandLine commandLine, @NotNull Project project, @NotNull String projectPath) { var indices = GradleTasksIndices.getInstance(project); for (var task : commandLine.getTasks()) { var taskData = indices.findTasks(projectPath, task.getName()); if (ContainerUtil.exists(taskData, it -> it.isJvmTest(... | hasJvmTestTasks |
59,994 | boolean (@NotNull GradleCommandLine commandLine, @NotNull Project project, @NotNull String projectPath) { var indices = GradleTasksIndices.getInstance(project); for (var task : commandLine.getTasks()) { var taskData = indices.findTasks(projectPath, task.getName()); if (ContainerUtil.exists(taskData, it -> it.isTest() &... | hasNonJvmTestTasks |
59,995 | boolean (@NotNull GradleCommandLine commandLine) { for (var task : commandLine.getTasks()) { if (ContainerUtil.exists(task.getOptions(), it -> !GradleCommandLineUtil.isTestPattern(it))) { return true; } } return false; } | hasNonTestOptions |
59,996 | boolean (@NotNull GradleCommandLine commandLine) { for (var task : commandLine.getTasks()) { if (task.getName().startsWith("-")) { return true; } } return false; } | hasUnrecognizedOptions |
59,997 | void (@NotNull ExternalSystemTaskId id, @NotNull GradleExecutionSettings settings, @NotNull ExternalSystemTaskNotificationListener listener) { TargetEnvironmentConfigurationProvider provider = ExternalSystemExecutionAware.Companion.getEnvironmentConfigurationProvider(settings); if (provider != null) return; // Prepared... | prepareTaskState |
59,998 | void ( @NotNull List<String> taskNames, @Nullable String jvmParametersSetup, @NotNull GradleExecutionSettings effectiveSettings ) { appendInitScriptArgument(taskNames, jvmParametersSetup, effectiveSettings, null); } | appendInitScriptArgument |
59,999 | void ( @NotNull List<String> taskNames, @Nullable String jvmParametersSetup, @NotNull GradleExecutionSettings effectiveSettings, @Nullable GradleVersion gradleVersion ) { final List<String> initScripts = new ArrayList<>(); List<GradleProjectResolverExtension> extensions = GradleProjectResolverUtil.createProjectResolver... | appendInitScriptArgument |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.