Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
59,400 | JpsGradleExtensionService () { return JpsServiceManager.getInstance().getService(JpsGradleExtensionService.class); } | getInstance |
59,401 | ResourceRootConfiguration () { return myConfig; } | getConfiguration |
59,402 | String () { return myId; } | getRootId |
59,403 | File () { return myFile; } | getRootFile |
59,404 | GradleResourcesTarget () { return myTarget; } | getTarget |
59,405 | FileFilter () { try { return new GradleResourceFileFilter(myFile, myConfig); } catch (Throwable e) { LOG.warn("Can not create resource file filter", e); } return FileFilters.EVERYTHING; } | createFileFilter |
59,406 | boolean () { return true; } | canUseFileCache |
59,407 | int () { return myIndexInPom; } | getIndexInPom |
59,408 | boolean () { return myOverwrite; } | isOverwrite |
59,409 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ModuleVersion bean = (ModuleVersion)o; if (artifactId != null ? !artifactId.equals(bean.artifactId) : bean.artifactId != null) return false; if (groupId != null ? !groupId.equals(bean.groupId) : bean.groupId != n... | equals |
59,410 | int () { int result = groupId != null ? groupId.hashCode() : 0; result = 31 * result + (artifactId != null ? artifactId.hashCode() : 0); result = 31 * result + (version != null ? version.hashCode() : 0); return result; } | hashCode |
59,411 | int (@Nullable PathRelativizerService pathRelativizerService) { int result; if(pathRelativizerService == null) { result = directory.hashCode(); result = 31 * result + (targetPath != null ? targetPath.hashCode() : 0); } else { result = pathRelativizerService.toRelative(directory).hashCode(); result = 31 * result + (targ... | computeConfigurationHash |
59,412 | boolean () { return myIsTests; } | isTests |
59,413 | List<GradleResourcesTarget> (@NotNull JpsModel model) { final List<GradleResourcesTarget> targets = new ArrayList<>(); for (JpsModule module : model.getProject().getModules()) { if (JpsGradleExtensionService.getInstance().getExtension(module) != null) { targets.add(new GradleResourcesTarget(this, module)); } } return t... | computeAllTargets |
59,414 | BuildTargetLoader<GradleResourcesTarget> (@NotNull JpsModel model) { final Map<String, JpsModule> modules = new HashMap<>(); for (JpsModule module : model.getProject().getModules()) { modules.put(module.getName(), module); } return new BuildTargetLoader<GradleResourcesTarget>() { @Nullable @Override public GradleResour... | createLoader |
59,415 | GradleResourcesTarget (@NotNull String targetId) { final JpsModule module = modules.get(targetId); return module != null ? new GradleResourcesTarget(GradleResourcesTargetType.this, module) : null; } | createTarget |
59,416 | List<GradleResourcesTarget> (@NotNull JpsModule module, boolean includeTest) { List<GradleResourcesTarget> targets = new ArrayList<>(); targets.add(new GradleResourcesTarget(PRODUCTION, module)); if (includeTest) { targets.add(new GradleResourcesTarget(TEST, module)); } return targets; } | buildModuleTargets |
59,417 | boolean (JpsModule module) { // enable standard resource processing only if this is not a gradle module // for gradle modules use gradle-aware resource builder return getExtension(module) == null; } | isResourceProcessingEnabled |
59,418 | JpsGradleModuleExtension (@NotNull JpsModule module) { return module.getContainer().getChild(JpsGradleModuleExtensionImpl.ROLE); } | getExtension |
59,419 | JpsGradleModuleExtension (@NotNull JpsModule module, @Nullable String moduleType) { JpsGradleModuleExtension extension = module.getContainer().getChild(JpsGradleModuleExtensionImpl.ROLE); if (extension == null) { extension = new JpsGradleModuleExtensionImpl(moduleType); module.getContainer().setChild(JpsGradleModuleExt... | getOrCreateExtension |
59,420 | void (@NotNull JpsDependencyElement dependency, boolean value) { if (value) { dependency.getContainer().setChild(PRODUCTION_ON_TEST_ROLE, JpsElementFactory.getInstance().createSimpleElement(true)); } else { dependency.getContainer().removeChild(PRODUCTION_ON_TEST_ROLE); } } | setProductionOnTestDependency |
59,421 | boolean (@NotNull JpsDependencyElement dependency) { JpsSimpleElement<Boolean> child = dependency.getContainer().getChild(PRODUCTION_ON_TEST_ROLE); return child != null && child.getData(); } | isProductionOnTestDependency |
59,422 | boolean (@NotNull BuildDataPaths paths) { return myConfigFileExists.get(new File(paths.getDataStorageRoot(), GradleProjectConfiguration.CONFIGURATION_FILE_RELATIVE_PATH)); } | hasGradleProjectConfiguration |
59,423 | GradleProjectConfiguration (BuildDataPaths paths) { final File dataStorageRoot = paths.getDataStorageRoot(); return getGradleProjectConfiguration(dataStorageRoot); } | getGradleProjectConfiguration |
59,424 | GradleProjectConfiguration (@NotNull File dataStorageRoot) { final File configFile = new File(dataStorageRoot, GradleProjectConfiguration.CONFIGURATION_FILE_RELATIVE_PATH); GradleProjectConfiguration config; synchronized (myLoadedConfigs) { config = myLoadedConfigs.get(configFile); if (config == null) { config = new Gr... | getGradleProjectConfiguration |
59,425 | String () { return myModule.getName(); } | getId |
59,426 | boolean () { return true; } | isCompiledBeforeModuleLevelBuilders |
59,427 | List<GradleResourceRootDescriptor> (@NotNull JpsModel model, @NotNull ModuleExcludeIndex index, @NotNull IgnoredFileIndex ignoredFileIndex, @NotNull BuildDataPaths dataPaths) { final List<GradleResourceRootDescriptor> result = new ArrayList<>(); GradleProjectConfiguration projectConfig = JpsGradleExtensionService.getIn... | computeRootDescriptors |
59,428 | Collection<ResourceRootConfiguration> (@Nullable GradleModuleResourceConfiguration moduleConfig) { if (moduleConfig != null) { return isTests() ? moduleConfig.testResources : moduleConfig.resources; } return Collections.emptyList(); } | getRootConfigurations |
59,429 | GradleModuleResourceConfiguration (BuildDataPaths dataPaths) { final GradleProjectConfiguration projectConfig = JpsGradleExtensionService.getInstance().getGradleProjectConfiguration(dataPaths); return projectConfig.moduleConfigurations.get(myModule.getName()); } | getModuleResourcesConfiguration |
59,430 | boolean () { return ((GradleResourcesTargetType)getTargetType()).isTests(); } | isTests |
59,431 | GradleResourceRootDescriptor (@NotNull String rootId, @NotNull BuildRootIndex rootIndex) { for (GradleResourceRootDescriptor descriptor : rootIndex.getTargetRoots(this, null)) { if (descriptor.getRootId().equals(rootId)) { return descriptor; } } return null; } | findRootDescriptor |
59,432 | String () { return getTargetType().getTypeId() + ":" + myModule.getName(); } | getPresentableName |
59,433 | Collection<File> (@NotNull CompileContext context) { GradleModuleResourceConfiguration configuration = getModuleResourcesConfiguration(context.getProjectDescriptor().dataManager.getDataPaths()); final Set<File> result = FileCollectionFactory.createCanonicalFileSet(); final File moduleOutput = getModuleOutputDir(); for ... | getOutputRoots |
59,434 | File () { return JpsJavaExtensionService.getInstance().getOutputDirectory(myModule, isTests()); } | getModuleOutputDir |
59,435 | File (@Nullable File moduleOutput, ResourceRootConfiguration config, @Nullable String outputDirectory) { if(outputDirectory != null) { moduleOutput = JpsPathUtil.urlToFile(outputDirectory); } if (moduleOutput == null) { return null; } String targetPath = config.targetPath; if (StringUtil.isEmptyOrSpaces(targetPath)) { ... | getOutputDir |
59,436 | void (@NotNull ProjectDescriptor pd, @NotNull PrintWriter out) { final BuildDataPaths dataPaths = pd.getTargetsState().getDataPaths(); final GradleModuleResourceConfiguration configuration = getModuleResourcesConfiguration(dataPaths); if (configuration != null) { PathRelativizerService pathRelativizerService = pd.dataM... | writeConfiguration |
59,437 | boolean (@NotNull File file) { final String relPath = FileUtil.getRelativePath(myRoot, file); return relPath != null && isIncluded(relPath); } | accept |
59,438 | boolean (@NotNull String relativePath) { RelativePath path = new RelativePath(true, relativePath.split(Pattern.quote(File.separator))); return myFileFilterSpec.isSatisfiedBy(path); } | isIncluded |
59,439 | Spec<RelativePath> () { return Specs.intersect(getAsIncludeSpec(true), Specs.negate(getAsExcludeSpec(true))); } | getAsSpec |
59,440 | Spec<RelativePath> (boolean caseSensitive) { Collection<String> allExcludes = new LinkedHashSet<>(myFilePattern.excludes); List<Spec<RelativePath>> matchers = new ArrayList<>(); for (String exclude : allExcludes) { PatternMatcher matcher = PatternMatcherFactory.getPatternMatcher(false, caseSensitive, exclude); matchers... | getAsExcludeSpec |
59,441 | Spec<RelativePath> (boolean caseSensitive) { List<Spec<RelativePath>> matchers = new ArrayList<>(); for (String include : myFilePattern.includes) { PatternMatcher matcher = PatternMatcherFactory.getPatternMatcher(true, caseSensitive, include); matchers.add(new MyRelativePathSpec(matcher)); } return Specs.union(matchers... | getAsIncludeSpec |
59,442 | boolean (RelativePath path) { return matcher.test(path.getSegments(), path.isFile()); } | isSatisfiedBy |
59,443 | int () { int result = filterType.hashCode(); result = 31 * result + getProperties().hashCode(); return result; } | computeConfigurationHash |
59,444 | Collection<String> (@NotNull CompileContext context, @NotNull ModuleChunk chunk) { return getModuleDependencies(chunk).stream() .flatMap(module -> buildModuleTargets(module, chunk.containsTests()).stream()) .flatMap(target -> target.getOutputRoots(context).stream()) .map(file -> FileUtil.toCanonicalPath(file.getPath())... | getCompilationClassPath |
59,445 | Collection<JpsModule> (@NotNull ModuleChunk chunk) { return chunk.getModules().stream() .flatMap(module -> module.getDependenciesList().getDependencies().stream()) .map(dep -> { if (dep instanceof JpsModuleDependency) return ((JpsModuleDependency)dep).getModule(); return null; }) .filter(Objects::nonNull) .collect(Coll... | getModuleDependencies |
59,446 | Collection<String> (@NotNull CompileContext context, @NotNull ModuleChunk chunk) { return Collections.emptyList(); } | getCompilationUnitPatchers |
59,447 | void (@NotNull JpsModule module, @NotNull Element rootElement) { Element externalSystemComponent = JDomSerializationUtil.findComponent(rootElement, "ExternalSystem"); if (GRADLE_SYSTEM_ID.equals(rootElement.getAttributeValue("external.system.id"))) { JpsGradleExtensionService.getInstance().getOrCreateExtension(module, ... | loadModuleOptions |
59,448 | void (JpsDependencyElement dependency, Element orderEntry) { if (orderEntry.getAttributeValue(PRODUCTION_ON_TEST_ATTRIBUTE) != null) { JpsGradleExtensionService.getInstance().setProductionOnTestDependency(dependency, true); } } | loadModuleDependencyProperties |
59,449 | JpsGradleArtifactExtension (@Nullable Element optionsTag) { return new JpsGradleArtifactExtensionImpl( optionsTag != null ? XmlSerializer.deserialize(optionsTag, GradleArtifactExtensionProperties.class) : null); } | loadExtension |
59,450 | String () { return myModuleType; } | getModuleType |
59,451 | JpsGradleModuleExtensionImpl () { return new JpsGradleModuleExtensionImpl(myModuleType); } | createCopy |
59,452 | void (@NotNull JpsGradleModuleExtensionImpl modified) { } | applyChanges |
59,453 | boolean () { return !myResolveModulePerSourceSet; } | shouldAddRuntimeDependenciesToTestCompilationClasspath |
59,454 | boolean (JpsDependencyElement element) { return JpsGradleExtensionService.getInstance().isProductionOnTestDependency(element); } | isProductionOnTestsDependency |
59,455 | boolean () { return !myResolveModulePerSourceSet; } | shouldIncludeTestsFromDependentModulesToTestClasspath |
59,456 | boolean () { return !myResolveModulePerSourceSet; } | shouldProcessDependenciesRecursively |
59,457 | JpsJavaDependenciesEnumerationHandler (@NotNull Collection<JpsModule> modules) { JpsGradleExtensionService service = JpsGradleExtensionService.getInstance(); JpsJavaDependenciesEnumerationHandler handler = null; for (JpsModule module : modules) { JpsGradleModuleExtension gradleModuleExtension = service.getExtension(mod... | createHandler |
59,458 | int (boolean forTestResources, PathRelativizerService pathRelativizerService) { int result = computeModuleConfigurationHash(); final List<ResourceRootConfiguration> _resources = forTestResources ? testResources : resources; result = 31 * result; for (ResourceRootConfiguration resource : _resources) { result += resource... | computeConfigurationHash |
59,459 | int () { int result = computeModuleConfigurationHash(); final List<ResourceRootConfiguration> _resources = ContainerUtil.concat(testResources, resources); result = 31 * result; for (ResourceRootConfiguration resource : _resources) { result += resource.computeConfigurationHash(null); } return result; } | computeConfigurationHash |
59,460 | int () { int result = id.hashCode(); result = 31 * result + (parentId != null ? parentId.hashCode() : 0); result = 31 * result + (outputDirectory != null ? outputDirectory.hashCode() : 0); result = 31 * result + (overwrite ? 1 : 0); return result; } | computeModuleConfigurationHash |
59,461 | JpsGradleArtifactExtensionImpl () { return new JpsGradleArtifactExtensionImpl(this); } | createCopy |
59,462 | GradleArtifactExtensionProperties () { return myProperties; } | getProperties |
59,463 | JpsArtifact () { return (JpsArtifact)myParent; } | getArtifact |
59,464 | void () { String srcRoot = PathUtil.getParentPath(createFile("src/A.java", "public class A { ATest test;}")); String testRoot = PathUtil.getParentPath(createFile("testSrc/ATest.java", "public class ATest {}")); JpsModule m = addModule("m", srcRoot); JpsModule commonTests = addModule("common.tests", ArrayUtilRt.EMPTY_ST... | testProductionOnTestDependency |
59,465 | GradleIdeManager () { return Optional.ofNullable(ApplicationManager.getApplication().getService(GradleIdeManager.class)).orElseGet(GradleIdeManager::new); } | getInstance |
59,466 | SMTRunnerConsoleProperties (Project project, Executor executor, RunConfiguration runConfiguration) { return null; } | createTestConsoleProperties |
59,467 | ProjectSystemId () { return GradleConstants.SYSTEM_ID; } | getSystemId |
59,468 | void (@Nullable GradleProjectSettings compositeRootSettings, GradleSettings settings, GradleExecutionSettings result, Project project, String projectPath) { if (compositeRootSettings == null || compositeRootSettings.getCompositeBuild() == null) return; GradleProjectSettings.CompositeBuild compositeBuild = compositeRoot... | configureExecutionWorkspace |
59,469 | void (@NotNull SimpleJavaParameters parameters) { throw new UnsupportedOperationException(); } | enhanceRemoteProcessing |
59,470 | Configurable (@NotNull Project project) { return new GradleConfigurable(project); } | getConfigurable |
59,471 | FileChooserDescriptor () { // project *.gradle script can be absent for gradle subproject return FileChooserDescriptorFactory.createSingleFolderDescriptor(); } | getExternalProjectConfigDescriptor |
59,472 | Icon () { return GradleIcons.GradleFile; } | getProjectIcon |
59,473 | Icon () { return DefaultExternalSystemUiAware.INSTANCE.getTaskIcon(); } | getTaskIcon |
59,474 | String (@NotNull String targetProjectPath, @Nullable String rootProjectPath) { return ExternalSystemApiUtil.getProjectRepresentationName(targetProjectPath, rootProjectPath); } | getProjectRepresentationName |
59,475 | String (@NotNull Project project, @NotNull String targetProjectPath, @Nullable String rootProjectPath) { GradleProjectSettings projectSettings = GradleSettings.getInstance(project).getLinkedProjectSettings(targetProjectPath); if (projectSettings != null && projectSettings.getCompositeBuild() != null) { for (BuildPartic... | getProjectRepresentationName |
59,476 | String (@NotNull String changedFileOrDirPath, @NotNull Project project) { return myAutoImportDelegate.getAffectedExternalProjectPath(changedFileOrDirPath, project); } | getAffectedExternalProjectPath |
59,477 | List<File> (String projectPath, @NotNull Project project) { return myAutoImportDelegate.getAffectedExternalProjectFiles(projectPath, project); } | getAffectedExternalProjectFiles |
59,478 | boolean (@Nullable ProjectResolverPolicy resolverPolicy) { return myAutoImportDelegate.isApplicable(resolverPolicy); } | isApplicable |
59,479 | FileChooserDescriptor () { return GradleUtil.getGradleProjectFileChooserDescriptor(); } | getExternalProjectDescriptor |
59,480 | GlobalSearchScope (@NotNull Project project, @NotNull ExternalSystemTaskExecutionSettings taskExecutionSettings) { String projectPath = taskExecutionSettings.getExternalProjectPath(); if (StringUtil.isEmpty(projectPath)) return null; GradleProjectSettings projectSettings = getSettingsProvider().fun(project).getLinkedPr... | getSearchScope |
59,481 | void (@NotNull final Project project) { // We want to automatically refresh linked projects on gradle service directory change. MessageBusConnection connection = project.getMessageBus().connect(); connection.subscribe(GradleSettings.getInstance(project).getChangesTopic(), new GradleSettingsListener() { @Override public... | runActivity |
59,482 | void (@Nullable String oldPath, @Nullable String newPath) { for (GradleProjectSettings projectSettings : GradleSettings.getInstance(project).getLinkedProjectsSettings()) { ExternalProjectsManager.getInstance(project).getExternalProjectsWatcher().markDirty(projectSettings.getExternalProjectPath()); } } | onServiceDirectoryPathChange |
59,483 | void (@Nullable String oldPath, @Nullable String newPath, @NotNull String linkedProjectPath) { ExternalProjectsManager.getInstance(project).getExternalProjectsWatcher().markDirty(linkedProjectPath); } | onGradleHomeChange |
59,484 | void (DistributionType currentValue, @NotNull String linkedProjectPath) { ExternalProjectsManager.getInstance(project).getExternalProjectsWatcher().markDirty(linkedProjectPath); } | onGradleDistributionTypeChange |
59,485 | void (boolean delegatedBuild, @NotNull String linkedProjectPath) { if (!updateOutputRoots(delegatedBuild, linkedProjectPath)) { ExternalProjectsManager.getInstance(project).getExternalProjectsWatcher().markDirty(linkedProjectPath); } } | onBuildDelegationChange |
59,486 | boolean (boolean delegatedBuild, @NotNull String linkedProjectPath) { ExternalProjectInfo projectInfo = ProjectDataManager.getInstance().getExternalProjectData(project, GradleConstants.SYSTEM_ID, linkedProjectPath); if (projectInfo == null) return false; String buildNumber = projectInfo.getBuildNumber(); if (buildNumbe... | updateOutputRoots |
59,487 | void (@NotNull ProgressIndicator indicator) { UnindexedFilesScannerExecutor.getInstance(project).suspendScanningAndIndexingThenRun(title, () -> { for (DataNode<ModuleData> moduleDataNode : findAll(projectStructure, ProjectKeys.MODULE)) { moduleDataNode.getData().useExternalCompilerOutput(delegatedBuild); for (DataNode<... | run |
59,488 | void (DataNode<ModuleData> moduleDataNode, boolean delegatedBuild) { ModuleData module = moduleDataNode.getData(); File ideaOutDir = new File(module.getLinkedExternalProjectPath(), "out"); module.useExternalCompilerOutput(delegatedBuild); if (!delegatedBuild) { excludeOutDir(moduleDataNode, ideaOutDir); } else { unexcl... | configureExcludeOutDir |
59,489 | void (@NotNull Map<String, String> adjustedPaths, @NotNull GradleLocalSettings localSettings) { Map<ExternalProjectPojo, Collection<ExternalProjectPojo>> adjustedAvailableProjects = new HashMap<>(); for (Map.Entry<ExternalProjectPojo, Collection<ExternalProjectPojo>> entry : localSettings.getAvailableProjects().entrySe... | patchAvailableProjects |
59,490 | void (@NotNull Map<String, String> adjustedPaths, @NotNull GradleLocalSettings localSettings) { for (ExternalTaskExecutionInfo taskInfo : localSettings.getRecentTasks()) { ExternalSystemTaskExecutionSettings s = taskInfo.getSettings(); String newPath = adjustedPaths.get(s.getExternalProjectPath()); if (newPath != null)... | patchRecentTasks |
59,491 | FileChooserDescriptor () { return new FileChooserDescriptor(true, true, false, false, false, false) .withFileFilter(file -> file.isCaseSensitive() ? endsWith(file.getName(), "." + EXTENSION) || endsWith(file.getName(), "." + KOTLIN_DSL_SCRIPT_EXTENSION) : endsWithIgnoreCase(file.getName(), "." + EXTENSION) || endsWithI... | getGradleProjectFileChooserDescriptor |
59,492 | FileChooserDescriptor () { // allow selecting files to avoid confusion: // on macOS a user can select any file but after clicking OK, dialog is closed, but IDEA doesnt' receive the file and doesn't react return FileChooserDescriptorFactory.createSingleFileOrFolderDescriptor(); } | getGradleHomeFileChooserDescriptor |
59,493 | boolean (@Nullable String gradleProjectPath) { return getWrapperConfiguration(gradleProjectPath) != null; } | isGradleDefaultWrapperFilesExist |
59,494 | WrapperConfiguration (@Nullable String gradleProjectPath) { Path wrapperPropertiesFile = findDefaultWrapperPropertiesFile(gradleProjectPath); if (wrapperPropertiesFile == null) return null; final WrapperConfiguration wrapperConfiguration = new WrapperConfiguration(); try (Reader wrapperPropertiesReader = Files.newBuffe... | getWrapperConfiguration |
59,495 | String (@NotNull GradleProject subProject, @NotNull String rootProjectPath) { try { GradleScript script = subProject.getBuildScript(); if (script != null) { File file = script.getSourceFile(); if (file != null) { if (!file.isDirectory()) { // The file points to 'build.gradle' at the moment but we keep it's parent dir p... | getConfigPath |
59,496 | String () { return PropertiesComponent.getInstance().getValue(LAST_USED_GRADLE_HOME_KEY, ""); } | getLastUsedGradleHome |
59,497 | void (@Nullable String gradleHomePath) { PropertiesComponent.getInstance().setValue(LAST_USED_GRADLE_HOME_KEY, gradleHomePath, null); } | storeLastUsedGradleHome |
59,498 | Path (@Nullable String gradleProjectPath) { if (gradleProjectPath == null) { return null; } Path file = Path.of(gradleProjectPath); // There is a possible case that given path points to a gradle script (*.gradle) but it's also possible that // it references script's directory. We want to provide flexibility here. Path ... | findDefaultWrapperPropertiesFile |
59,499 | String (@NotNull String subProjectPath) { final Path subProject = Paths.get(subProjectPath); Path candidate = subProject; try { while (candidate != null && candidate != candidate.getParent()) { if (containsGradleSettingsFile(candidate)) { return candidate.toString(); } candidate = candidate.getParent(); } } catch (IOEx... | determineRootProject |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.