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 super.interpolateModel(model, projectDir, config, problems); } return model; }
|
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 { super.interpolateObject(obj, model, projectDir, config, problems); } }
|
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); interpolateObjectMethod.setAccessible(true); interpolateObjectMethod.invoke(this, obj, model, projectDir, config, problems); } catch (Exception e) { problems.add(new ModelProblemCollectorRequest(ModelProblem.Severity.ERROR, ModelProblem.Version.BASE) .setException(e) .setMessage(e.getMessage())); } }
|
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)); } int firstMapIndex = -1; for (int i = 0; i < sources.size(); i++) { if (sources.get(i) instanceof MapBasedValueSource) { firstMapIndex = i; break; } } Map<String, Object> rightOrderProperties = new HashMap<String, Object>(3); if (config.getSystemProperties().containsKey(REVISION_PROPERTY)) { rightOrderProperties.put(REVISION_PROPERTY, config.getSystemProperties().getProperty(REVISION_PROPERTY)); } if (config.getSystemProperties().containsKey(CHANGELIST_PROPERTY)) { rightOrderProperties.put(CHANGELIST_PROPERTY, config.getSystemProperties().getProperty(CHANGELIST_PROPERTY)); } if (config.getSystemProperties().containsKey(SHA1_PROPERTY)) { rightOrderProperties.put(SHA1_PROPERTY, config.getSystemProperties().getProperty(SHA1_PROPERTY)); } // these 3 system properties must be resolved before model properties sources.add(firstMapIndex + 1, new MapBasedValueSource(rightOrderProperties)); return sources; }
|
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, inheritedScope, optional)); }
|
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)) { return false; } } return true; }
|
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 == '/' ? '\\' : '/', File.separatorChar); if (pattern.endsWith(File.separator)) { pattern += "**"; } } return pattern; }
|
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("(" + quotedEscapeString + quotedEscapeString + ")|(?:(" + quotedEscapeString + ")?(" + myModuleConfiguration.delimitersPattern + "))"); } myDelimitersPattern = pattern; } return pattern; }
|
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().getMavenProjectConfiguration(buildDataPaths); if (projectConfiguration == null) return null; MavenWebArtifactConfiguration artifactResourceConfiguration = projectConfiguration.webArtifactConfigs.get(artifact.getName()); if (artifactResourceConfiguration == null) return null; MavenModuleResourceConfiguration moduleResourceConfiguration = projectConfiguration.moduleConfigurations.get(artifactResourceConfiguration.moduleName); if (moduleResourceConfiguration == null) { LOG.debug("Maven resource configuration not found for module " + artifactResourceConfiguration.moduleName); return null; } if (contextElement instanceof JpsModuleOutputPackagingElement) { if (!FileUtil.namesEqual("classes", root.getName())) return null; return new MavenClassesCopyingHandler(root.getParentFile(), artifactResourceConfiguration, moduleResourceConfiguration); } ResourceRootConfiguration rootConfiguration = artifactResourceConfiguration.getRootConfiguration(root); String relativeDirInWar = null; if (rootConfiguration == null) { if (artifact.getOutputPath() != null && !FileUtil.isAncestor(new File(artifactResourceConfiguration.warSourceDirectory), root, false)) { relativeDirInWar = FileUtil.getRelativePath(new File(artifact.getOutputPath()), targetDirectory); if (relativeDirInWar == null) return null; } ResourceRootConfiguration warRootConfig = getWarRootConfig(artifactResourceConfiguration, moduleResourceConfiguration); if (root.isFile()) { root = root.getParentFile(); } warRootConfig.directory = root.getPath(); if (relativeDirInWar == null) { warRootConfig.includes.addAll(artifactResourceConfiguration.warSourceIncludes); warRootConfig.excludes.addAll(artifactResourceConfiguration.warSourceExcludes); } return new MavenWebArtifactCopyingHandler(warRootConfig, moduleResourceConfiguration, relativeDirInWar); } MavenResourceFileProcessor fileProcessor = new MavenResourceFileProcessor(projectConfiguration, model.getProject(), moduleResourceConfiguration); return new MavenWebRootCopyingHandler(fileProcessor, artifactResourceConfiguration, rootConfiguration, moduleResourceConfiguration, root); }
|
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 = moduleResourceConfig.outputDirectory; rootConfig.includes.addAll(artifactConfig.packagingIncludes); rootConfig.excludes.addAll(artifactConfig.packagingExcludes); return rootConfig; }
|
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 (ResourceRootConfiguration webResource : artifactConfig.webResources) { if (!webResource.isFiltered) continue; String targetPath = webResource.targetPath; if (StringUtil.isEmptyOrSpaces(targetPath)) continue; if (webInfClassesPath.equals(targetPath) || "WEB-INF/classes".equals(trimEnd(trimStart(targetPath, "/"), '/'))) { result.add(webResource); } } return result; }
|
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.computeConfigurationHash(); } return hash; }
|
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.getPath()); continue; } // do not accept files that will be copied and filtered by another copyingHandlerProvider File webResourceFile = new File(toSystemDependentName(entry.getKey().directory), relPath); if (webResourceFile.exists() && entry.getValue().accept(webResourceFile)) return false; } String relPath = FileUtil.getRelativePath(myTargetDir, file); return relPath != null && super.accept(new File(myTargetDir, "WEB-INF" + File.separator + relPath)); }
|
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 MavenModuleResourceConfiguration moduleResourceConfiguration = projectConfiguration.moduleConfigurations.get(getModuleName(myArtifact.getName())); if (moduleResourceConfiguration != null && StringUtil.isNotEmpty(moduleResourceConfiguration.manifest)) { try { File output = new File(myArtifact.getOutputPath(), JarFile.MANIFEST_NAME); FileUtil.writeToFile(output, Base64.getDecoder().decode(moduleResourceConfiguration.manifest)); handleSkinnyWars(context, projectConfiguration, moduleResourceConfiguration); } // do not fail the whole 'Make' if there is an invalid manifest cached (e.g. non encoded string generated by previous IDEA version) catch (Exception e) { LOG.debug(e); } } }
|
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.maven-ear-plugin.skinnyWars"))) return; final String earClasspath = moduleResourceConfiguration.classpath; if (earClasspath == null) return; final Map<String, String> earClasspathMap = ContainerUtil.map2Map( StringUtil.split(earClasspath, " "), s -> { final int idx = s.lastIndexOf("/"); return Pair.create(s.substring(idx == -1 ? 0 : idx + 1), s); }); JpsArtifactUtil.processPackagingElements(myArtifact.getRootElement(), element -> { if (!(element instanceof JpsFileCopyPackagingElement)) return true; final JpsFileCopyPackagingElement fileCopyPackagingElement = (JpsFileCopyPackagingElement)element; final String filePath = fileCopyPackagingElement.getFilePath(); final File skinnyManifest = new File(filePath); if (!"SKINNY_MANIFEST.MF".equals(skinnyManifest.getName())) return true; final String skinnyWarModuleName = skinnyManifest.getParentFile().getParentFile().getName(); final MavenModuleResourceConfiguration warConfiguration = projectConfiguration.moduleConfigurations.get(skinnyWarModuleName); if (warConfiguration == null || warConfiguration.classpath == null) return true; try { final byte[] warManifestData = Base64.getDecoder().decode(warConfiguration.manifest); Manifest warManifest = new Manifest(new ByteArrayInputStream(warManifestData)); List<String> skinnyWarClasspath = new ArrayList<>(); for (String entry : StringUtil.split(warConfiguration.classpath, " ")) { final int idx = entry.lastIndexOf("/"); final String entryName = entry.substring(idx == -1 ? 0 : idx + 1); final String earEntryPath = earClasspathMap.get(entryName); skinnyWarClasspath.add(earEntryPath == null ? entry : earEntryPath); } final Attributes warManifestMainAttributes = warManifest.getMainAttributes(); warManifestMainAttributes.putValue("Class-Path", StringUtil.join(skinnyWarClasspath, " ")); File skinnyManifestTargetFile = null; FileUtil.createParentDirs(skinnyManifest); try (FileOutputStream outputStream = new FileOutputStream(skinnyManifest)) { warManifest.write(outputStream); if (fileCopyPackagingElement instanceof JpsElementBase) { final LinkedList<String> pathParts = new LinkedList<>(); pathParts.add(fileCopyPackagingElement.getRenamedOutputFileName()); JpsElementBase parent = ((JpsElementBase<?>)fileCopyPackagingElement).getParent(); while (parent != null) { if (parent instanceof JpsDirectoryPackagingElement) { pathParts.addFirst(((JpsDirectoryPackagingElement)parent).getDirectoryName()); } else if (parent instanceof JpsArtifact) { final String outputPath = ((JpsArtifact)parent).getOutputPath(); if (outputPath != null) { pathParts.addFirst(outputPath); skinnyManifestTargetFile = new File(StringUtil.join(pathParts, "/")); break; } } parent = parent.getParent(); } } } if (skinnyManifestTargetFile != null) { FileUtil.createParentDirs(skinnyManifestTargetFile); FileUtil.copy(skinnyManifest, skinnyManifestTargetFile); } FSOperations.markDirtyIfNotDeleted(context, CompilationRound.NEXT, skinnyManifest); FSOperations.markDirtyIfNotDeleted(context, CompilationRound.NEXT, skinnyManifestTargetFile); } catch (IOException e) { LOG.debug(e); } return true; }); }
|
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().getMavenProjectConfiguration(buildDataPaths); if (projectConfiguration == null) return null; MavenEjbClientConfiguration ejbCfg = projectConfiguration.ejbClientArtifactConfigs.get(artifact.getName()); if (ejbCfg == null) { JpsArtifact parentArtifact = findParentArtifact(contextElement); if (parentArtifact != null) { ejbCfg = projectConfiguration.ejbClientArtifactConfigs.get(parentArtifact.getName()); } } return ejbCfg == null ? null : new FilterCopyHandler(new MavenResourceFileFilter(root, ejbCfg)); }
|
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.separator + "web.xml"; if (myAcceptWebXml && FileUtil.pathsEqual(webInfWebXml, relativePath)) { return true; } return myMavenPatternFileFilter.accept(relativePath); }
|
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 myResourceRootsMap.get(root); }
|
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) return false; if (version != null ? !version.equals(bean.version) : bean.version != null) return false; return true; }
|
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 MavenResourcesTarget(this, module)); } } return targets; }
|
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 MavenResourcesTarget createTarget(@NotNull String targetId) { final JpsModule module = modules.get(targetId); return module != null ? new MavenResourcesTarget(MavenResourcesTargetType.this, module) : null; } }; }
|
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.