Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
18,900 | void (String version) { myWrapee.selectVersion(version); } | selectVersion |
18,901 | void (String groupId) { myWrapee.setGroupId(groupId); } | setGroupId |
18,902 | void (String artifactId) { myWrapee.setArtifactId(artifactId); } | setArtifactId |
18,903 | boolean () { return myWrapee.isSnapshot(); } | isSnapshot |
18,904 | void (boolean resolved) { myWrapee.setResolved(resolved); } | setResolved |
18,905 | boolean () { return myWrapee.isResolved(); } | isResolved |
18,906 | void (String version) { myWrapee.setResolvedVersion(version); } | setResolvedVersion |
18,907 | void (ArtifactHandler handler) { myWrapee.setArtifactHandler(handler); } | setArtifactHandler |
18,908 | boolean () { return myWrapee.isRelease(); } | isRelease |
18,909 | void (boolean release) { myWrapee.setRelease(release); } | setRelease |
18,910 | List<ArtifactVersion> () { return myWrapee.getAvailableVersions(); } | getAvailableVersions |
18,911 | void (List<ArtifactVersion> versions) { myWrapee.setAvailableVersions(versions); } | setAvailableVersions |
18,912 | boolean () { return myWrapee.isOptional(); } | isOptional |
18,913 | void (boolean optional) { myWrapee.setOptional(optional); } | setOptional |
18,914 | int (Artifact o) { if (o instanceof CustomMaven3Artifact) o = ((CustomMaven3Artifact)o).myWrapee; return myWrapee.compareTo(o); } | compareTo |
18,915 | String () { return myWrapee.toString(); } | toString |
18,916 | boolean (Object obj) { if (obj instanceof CustomMaven3Artifact) obj = ((CustomMaven3Artifact)obj).myWrapee; return myWrapee.equals(obj); } | equals |
18,917 | int () { return myWrapee.hashCode(); } | hashCode |
18,918 | void () { descriptors.clear(); } | flush |
18,919 | PluginDescriptor (Key cacheKey) { return patchedClone(descriptors.get(cacheKey)); } | get |
18,920 | void (Key cacheKey, PluginDescriptor pluginDescriptor) { descriptors.put(cacheKey, patchedClone(pluginDescriptor)); } | put |
18,921 | PluginDescriptor (PluginDescriptor pluginDescriptor) { if (pluginDescriptor == null) return null; PluginDescriptor clone = clone(pluginDescriptor); clone.setDependencies(new ArrayList<ComponentDependency>(pluginDescriptor.getDependencies())); return clone; } | patchedClone |
18,922 | Model (Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) { String mavenVersion = System.getProperty(MAVEN_EMBEDDER_VERSION); if (VersionComparatorUtil.compare(mavenVersion, "3.6.2") >= 0) { interpolateObjectFor362(model, model, projectDir, config, problems); } else { return supe... | interpolateModel |
18,923 | void (Object obj, Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) { String mavenVersion = System.getProperty(MAVEN_EMBEDDER_VERSION); if (VersionComparatorUtil.compare(mavenVersion, "3.6.2") >= 0) { interpolateObjectFor362(obj, model, projectDir, config, problems); } else { su... | interpolateObject |
18,924 | void (Object obj, Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) { try { Method interpolateObjectMethod = StringSearchModelInterpolator.class .getDeclaredMethod("interpolateObject", Object.class, Model.class, File.class, ModelBuildingRequest.class, ModelProblemCollector.class... | interpolateObjectFor362 |
18,925 | List<ValueSource> (Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) { List<ValueSource> sources = super.createValueSources(model, projectDir, config, problems); if (localRepository != null) { sources.add(new SingleResponseValueSource("settings.localRepository", localRepository)... | createValueSources |
18,926 | String () { return localRepository; } | getLocalRepository |
18,927 | void (String localRepository) { this.localRepository = localRepository; } | setLocalRepository |
18,928 | MavenProject () { return myMavenProject; } | getMavenProject |
18,929 | DependencyResolutionResult () { return myDependencyResolutionResult; } | getDependencyResolutionResult |
18,930 | List<Exception> () { return myExceptions; } | getExceptions |
18,931 | boolean () { return !myExceptions.isEmpty(); } | hasExceptions |
18,932 | List<ModelProblem> () { return myModelProblems; } | getModelProblems |
18,933 | File () { return myMavenProject != null ? myMavenProject.getFile() : myPomFile; } | getPomFile |
18,934 | void () { myCustomized = true; } | customize |
18,935 | void () { myCustomized = false; } | reset |
18,936 | Artifact (String groupId, String artifactId, String version, String scope, String type) { return wrap(super.createArtifact(checkValue(groupId), checkValue(artifactId), checkVersion(version), scope, type)); } | createArtifact |
18,937 | Artifact (String groupId, String artifactId, String version, String type, String classifier) { return wrap(super.createArtifactWithClassifier(checkValue(groupId), checkValue(artifactId), checkVersion(version), type, classifier)); } | createArtifactWithClassifier |
18,938 | Artifact (String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope) { return wrap(super.createDependencyArtifact(checkValue(groupId), checkValue(artifactId), checkVersionRange(versionRange), type, classifier, scope)); } | createDependencyArtifact |
18,939 | Artifact (String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, boolean optional) { return wrap(super.createDependencyArtifact(checkValue(groupId), checkValue(artifactId), checkVersionRange(versionRange), type, classifier, scope, optional)); } | createDependencyArtifact |
18,940 | Artifact (String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope) { return wrap(super.createDependencyArtifact(checkValue(groupId), checkValue(artifactId), checkVersionRange(versionRange), type, classifier, scope, inheritedScope)); } | createDependencyArtifact |
18,941 | Artifact (String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope, boolean optional) { return wrap(super.createDependencyArtifact(checkValue(groupId), checkValue(artifactId), checkVersionRange(versionRange), type, classifier, scope, inheritedScop... | createDependencyArtifact |
18,942 | Artifact (String groupId, String artifactId, String version, String packaging) { return wrap(super.createBuildArtifact(checkValue(groupId), checkValue(artifactId), checkVersion(version), packaging)); } | createBuildArtifact |
18,943 | Artifact (String groupId, String artifactId, String version) { return wrap(super.createProjectArtifact(checkValue(groupId), checkValue(artifactId), checkVersion(version))); } | createProjectArtifact |
18,944 | Artifact (String groupId, String artifactId, String version) { return wrap(super.createParentArtifact(checkValue(groupId), checkValue(artifactId), checkVersion(version))); } | createParentArtifact |
18,945 | Artifact (String groupId, String artifactId, VersionRange versionRange) { return wrap(super.createPluginArtifact(checkValue(groupId), checkValue(artifactId), checkVersionRange(versionRange))); } | createPluginArtifact |
18,946 | Artifact (String groupId, String artifactId, String version, String scope) { return wrap(super.createProjectArtifact(checkValue(groupId), checkValue(artifactId), checkVersion(version), scope)); } | createProjectArtifact |
18,947 | Artifact (String groupId, String artifactId, VersionRange versionRange) { return wrap(super.createExtensionArtifact(checkValue(groupId), checkValue(artifactId), checkVersionRange(versionRange))); } | createExtensionArtifact |
18,948 | Artifact (Artifact a) { if (!myCustomized) return a; return a != null ? new CustomMaven3Artifact(a) : null; } | wrap |
18,949 | String (String value) { return value == null || value.trim().length() == 0 ? "error" : value; } | checkValue |
18,950 | String (String value) { return value == null ? "unknown" : value; } | checkVersion |
18,951 | VersionRange (VersionRange range) { return range == null ? UNKNOWN_VERSION_RANGE : range; } | checkVersionRange |
18,952 | void (MavenWorkspaceMap workspaceMap) { myWorkspaceMap = new MavenWorkspaceMapWrapper(workspaceMap); } | customize |
18,953 | void () { myWorkspaceMap = null; } | reset |
18,954 | boolean (File pathname) { return accept(pathname.getPath()); } | accept |
18,955 | boolean (String path) { return accept(path, myNormalizedIncludes, myNormalizedExcludes); } | accept |
18,956 | boolean (String path, String[] includes, String[] excludes) { boolean isIncluded = includes.length == 0; for (String each : includes) { if (SelectorUtils.matchPath(each, path)) { isIncluded = true; break; } } if (!isIncluded) { return false; } for (String each : excludes) { if (SelectorUtils.matchPath(each, path)) { re... | accept |
18,957 | String (String pattern) { pattern = pattern.trim(); if (pattern.startsWith(SelectorUtils.REGEX_HANDLER_PREFIX)) { if (File.separatorChar == '\\') { pattern = StringUtils.replace(pattern, "/", "\\\\"); } else { pattern = StringUtils.replace(pattern, "\\\\", "/"); } } else { pattern = pattern.replace(File.separatorChar =... | normalizePattern |
18,958 | Pattern () { Pattern pattern = myDelimitersPattern; if (pattern == null) { if (StringUtil.isEmpty(myModuleConfiguration.escapeString)) { pattern = Pattern.compile(myModuleConfiguration.delimitersPattern); } else { String quotedEscapeString = Pattern.quote(myModuleConfiguration.escapeString); pattern = Pattern.compile("... | getDelimitersPattern |
18,959 | FileCopyingHandler (@NotNull JpsArtifact artifact, @NotNull File root, @NotNull File targetDirectory, @NotNull JpsPackagingElement contextElement, @NotNull JpsModel model, @NotNull BuildDataPaths buildDataPaths) { MavenProjectConfiguration projectConfiguration = JpsMavenExtensionService.getInstance().getMavenProjectCon... | createCustomHandler |
18,960 | void (@NotNull PrintWriter out) { out.print("maven hash:"); out.println(configurationHash()); } | writeConfiguration |
18,961 | int () { int hash = 1; hash = 31 * hash + myWarRootConfig.includes.hashCode(); hash = 31 * hash + myWarRootConfig.excludes.hashCode(); hash = 31 * hash + myWarRootConfig.computeConfigurationHash(); hash = 31 * hash + myModuleResourceConfig.computeModuleConfigurationHash(); return hash; } | configurationHash |
18,962 | ResourceRootConfiguration (@NotNull MavenWebArtifactConfiguration artifactConfig, @NotNull MavenModuleResourceConfiguration moduleResourceConfig) { ResourceRootConfiguration rootConfig = new ResourceRootConfiguration(); rootConfig.directory = artifactConfig.warSourceDirectory; rootConfig.targetPath = moduleResourceConf... | getWarRootConfig |
18,963 | List<ResourceRootConfiguration> (@NotNull File targetDir, @NotNull MavenWebArtifactConfiguration artifactConfig) { String webInfClassesPath = toSystemIndependentName(new File(targetDir, "WEB-INF" + File.separator + "classes").getPath()); List<ResourceRootConfiguration> result = new SmartList<>(); for (ResourceRootConfi... | getWebResources |
18,964 | int () { int hash = super.configurationHash(); hash = 31 * hash + FileUtil.fileHashCode(myTargetDir); for (ResourceRootConfiguration webResource : myWebResources) { hash = 31 * hash + webResource.includes.hashCode(); hash = 31 * hash + webResource.excludes.hashCode(); hash = 31 * hash + webResource.computeConfiguration... | configurationHash |
18,965 | boolean (@NotNull File file) { for (Map.Entry<ResourceRootConfiguration, FileFilter> entry : myWebResourcesMap.entrySet()) { String relPath = FileUtil.getRelativePath(new File(myTargetDir, "classes"), file); if (relPath == null) { LOG.debug("File " + file.getPath() + " is not under classes directory of " + myTargetDir.... | accept |
18,966 | int () { return myRootConfiguration.computeConfigurationHash() + super.configurationHash() * 31; } | configurationHash |
18,967 | FileFilter () { return myCopyingFilter; } | createFileFilter |
18,968 | void (CompileContext context) { BuildDataPaths dataPaths = context.getProjectDescriptor().dataManager.getDataPaths(); MavenProjectConfiguration projectConfiguration = JpsMavenExtensionService.getInstance().getMavenProjectConfiguration(dataPaths); if (projectConfiguration == null) return; final MavenModuleResourceConfig... | build |
18,969 | void (final CompileContext context, final MavenProjectConfiguration projectConfiguration, MavenModuleResourceConfiguration moduleResourceConfiguration) { if (!"ear".equals(moduleResourceConfiguration.modelMap.get("packaging"))) return; if (!Boolean.parseBoolean(moduleResourceConfiguration.modelMap.get("build.plugin.mav... | handleSkinnyWars |
18,970 | String (@NotNull String artifactName) { return StringUtil.substringBefore(artifactName, ":"); } | getModuleName |
18,971 | String () { return MavenJpsBundle.message("maven.resources.compiler"); } | getPresentableName |
18,972 | FileCopyingHandler (@NotNull JpsArtifact artifact, @NotNull File root, @NotNull File targetDirectory, @NotNull JpsPackagingElement contextElement, @NotNull JpsModel model, @NotNull BuildDataPaths buildDataPaths) { MavenProjectConfiguration projectConfiguration = JpsMavenExtensionService.getInstance().getMavenProjectCon... | createCustomHandler |
18,973 | JpsArtifact (JpsElement element) { if (element instanceof JpsElementBase) { JpsElementBase parent = ((JpsElementBase<?>)element).getParent(); if (parent instanceof JpsArtifact) { return (JpsArtifact)parent; } if (parent != null) { return findParentArtifact(parent); } } return null; } | findParentArtifact |
18,974 | String () { return myMavenId; } | getMavenId |
18,975 | String () { return myGroupId; } | getGroupId |
18,976 | String () { return myArtifactId; } | getArtifactId |
18,977 | String () { return myVersion; } | getVersion |
18,978 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RepositoryLibraryDescriptor that = (RepositoryLibraryDescriptor)o; if (myMavenId != null ? !myMavenId.equals(that.myMavenId) : that.myMavenId != null) return false; return true; } | equals |
18,979 | int () { return myMavenId != null ? myMavenId.hashCode() : 0; } | hashCode |
18,980 | JpsMavenExtensionService () { return JpsServiceManager.getInstance().getService(JpsMavenExtensionService.class); } | getInstance |
18,981 | String () { return myTargetType.getTypeId() + ":" + myModule.getName(); } | getPresentableName |
18,982 | boolean () { return myTargetType.isTests(); } | isTests |
18,983 | boolean () { return true; } | isCompiledBeforeModuleLevelBuilders |
18,984 | List<BuildRootDescriptor> (@NotNull JpsModel model, @NotNull ModuleExcludeIndex index, @NotNull IgnoredFileIndex ignoredFileIndex, @NotNull BuildDataPaths dataPaths) { return Collections.emptyList(); } | computeRootDescriptors |
18,985 | Collection<File> (@NotNull CompileContext context) { return Collections.emptyList(); } | getOutputRoots |
18,986 | int () { int result = directory.hashCode(); result = 31 * result + (targetPath != null ? targetPath.hashCode() : 0); result = 31 * result + (isFiltered ? 1 : 0); //result = 31 * result + includes.hashCode(); //result = 31 * result + excludes.hashCode(); return result; } | computeConfigurationHash |
18,987 | String () { return "ResourceRootConfiguration{" + "directory='" + directory + '\'' + ", targetPath='" + targetPath + '\'' + ", isFiltered=" + isFiltered + ", includes=" + includes + ", excludes=" + excludes + '}'; } | toString |
18,988 | boolean (@NotNull File file) { String relativePath = FileUtil.getRelativePath(myRoot, file); if (myRelativeDirectoryPath != null) { relativePath = myRelativeDirectoryPath + (relativePath != null ? File.separator + relativePath : ""); } if (relativePath == null) { return false; } String webInfWebXml = "WEB-INF" + File.s... | accept |
18,989 | MavenResourceFileFilter () { return new MavenResourceFileFilter(myMavenPatternFileFilter, myRoot, myRelativeDirectoryPath, true); } | acceptingWebXml |
18,990 | ResourceRootConfiguration (@NotNull File root) { if (myResourceRootsMap == null) { Map<File, ResourceRootConfiguration> map = FileCollectionFactory.createCanonicalFileMap(); for (ResourceRootConfiguration resource : webResources) { map.put(new File(resource.directory), resource); } myResourceRootsMap = map; } return my... | getRootConfiguration |
18,991 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MavenIdBean bean = (MavenIdBean)o; if (artifactId != null ? !artifactId.equals(bean.artifactId) : bean.artifactId != null) return false; if (groupId != null ? !groupId.equals(bean.groupId) : bean.groupId != null)... | equals |
18,992 | 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 |
18,993 | boolean () { return myIsTests; } | isTests |
18,994 | List<MavenResourcesTarget> (@NotNull JpsModel model) { final List<MavenResourcesTarget> targets = new ArrayList<>(); final JpsMavenExtensionService service = JpsMavenExtensionService.getInstance(); for (JpsModule module : model.getProject().getModules()) { if (service.getExtension(module) != null) { targets.add(new Mav... | computeAllTargets |
18,995 | BuildTargetLoader<MavenResourcesTarget> (@NotNull JpsModel model) { final Map<String, JpsModule> modules = new HashMap<>(); for (JpsModule module : model.getProject().getModules()) { modules.put(module.getName(), module); } return new BuildTargetLoader<MavenResourcesTarget>() { @Nullable @Override public MavenResources... | createLoader |
18,996 | MavenResourcesTarget (@NotNull String targetId) { final JpsModule module = modules.get(targetId); return module != null ? new MavenResourcesTarget(MavenResourcesTargetType.this, module) : null; } | createTarget |
18,997 | List<String> () { return myAnnotationProcessorModules; } | getAnnotationProcessorModules |
18,998 | JpsMavenModuleExtensionImpl () { JpsMavenModuleExtensionImpl extension = new JpsMavenModuleExtensionImpl(); extension.myAnnotationProcessorModules.addAll(this.myAnnotationProcessorModules); return extension; } | createCopy |
18,999 | void (@NotNull JpsMavenModuleExtensionImpl modified) { } | applyChanges |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.