Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
2,700 | List<String> () { return Collections.emptyList(); } | getCompilableFileExtensions |
2,701 | InputStream (String internalClassName) { final BinaryContent content = outputConsumer.lookupClassBytes(internalClassName.replace("/", ".")); if (content != null) { return new ByteArrayInputStream(content.getBuffer(), content.getOffset(), content.getLength()); } return null; } | lookupClassBeforeClasspath |
2,702 | ExitCode (CompileContext context, ModuleChunk chunk, InstrumentationClassFinder finder, OutputConsumer outputConsumer) { ExitCode exitCode = ExitCode.NOTHING_DONE; for (CompiledClass compiledClass : outputConsumer.getCompiledClasses().values()) { if (Utils.IS_TEST_MODE || LOG.isDebugEnabled()) { LOG.debug("checking " +... | performBuild |
2,703 | List<T> (@NotNull JpsModel model) { Collection<JpsArtifact> artifacts = JpsBuilderArtifactService.getInstance().getArtifacts(model, true); List<T> targets = new ArrayList<>(artifacts.size()); for (JpsArtifact artifact : artifacts) { if (!StringUtil.isEmpty(artifact.getOutputPath())) { targets.add(createArtifactBasedTar... | computeAllTargets |
2,704 | BuildTargetLoader<T> (@NotNull JpsModel model) { return new Loader(model); } | createLoader |
2,705 | File (@NotNull String fullPath) { final int i = fullPath.indexOf(JAR_SEPARATOR); String filePath = i == -1 ? fullPath : fullPath.substring(0, i); return new File(FileUtil.toSystemDependentName(filePath)); } | getLocalFile |
2,706 | String () { return myArtifact.getName(); } | getId |
2,707 | JpsArtifact () { return myArtifact; } | getArtifact |
2,708 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; return myArtifact.equals(((ArtifactBasedBuildTarget)o).myArtifact); } | equals |
2,709 | int () { return myArtifact.hashCode(); } | hashCode |
2,710 | String (@NotNull String path) { return myRelativizer.toRelative(path); } | normalizePath |
2,711 | List<SourcePathAndRootIndex> (@NotNull List<SourcePathAndRootIndex> state) { List<SourcePathAndRootIndex> normalizePathList = new SmartList<>(); state.forEach(it -> normalizePathList.add(new SourcePathAndRootIndex(normalizePath(it.myPath), it.myRootIndex))); return normalizePathList; } | normalizePaths |
2,712 | String () { return myPath; } | getPath |
2,713 | int () { return myRootIndex; } | getRootIndex |
2,714 | JpsBuilderArtifactService () { return ourInstance; } | getInstance |
2,715 | ArtifactBuildTarget (JpsArtifact artifact) { return new ArtifactBuildTarget(artifact); } | createArtifactBasedTarget |
2,716 | String () { return getBuilderName(); } | getPresentableName |
2,717 | boolean () { String outputFilePath = artifact.getOutputFilePath(); if (StringUtil.isEmpty(outputFilePath)) { context.processMessage(new CompilerMessage(getBuilderName(), BuildMessage.Kind.ERROR, JpsBuildBundle.message("build.message.cannot.build.0.artifact.output.path.is.not.specified", artifact.getName()))); return fa... | startBuild |
2,718 | List<BuildTask> (ArtifactBuildTaskProvider.ArtifactBuildPhase phase) { List<BuildTask> result = new ArrayList<>(); for (ArtifactBuildTaskProvider provider : JpsServiceManager.getInstance().getExtensions(ArtifactBuildTaskProvider.class)) { result.addAll(provider.createArtifactBuildTasks(artifact, phase)); } return resul... | createArtifactTasks |
2,719 | void (final int rootIndex, final String path, Collection<String> deletedFiles) { if (deletedFiles.contains(path)) { return; } Set<String> paths = filesToProcess.get(rootIndex); if (paths == null) { paths = CollectionFactory.createFilePathSet(); filesToProcess.put(rootIndex, paths); } paths.add(path); } | addFileToProcess |
2,720 | void (@NotNull ProjectDescriptor pd, @NotNull PrintWriter out) { final PathRelativizerService relativizer = pd.dataManager.getRelativizer(); String outputPath = getArtifact().getOutputPath(); out.println(StringUtil.isNotEmpty(outputPath) ? relativizer.toRelative(outputPath) : ""); final BuildRootIndex rootIndex = pd.ge... | writeConfiguration |
2,721 | List<ArtifactRootDescriptor> (@NotNull JpsModel model, @NotNull ModuleExcludeIndex index, @NotNull IgnoredFileIndex ignoredFileIndex, @NotNull BuildDataPaths dataPaths) { ArtifactInstructionsBuilderImpl builder = new ArtifactInstructionsBuilderImpl(index, ignoredFileIndex, this, model, dataPaths); ArtifactInstructionsB... | computeRootDescriptors |
2,722 | ArtifactRootDescriptor (@NotNull String rootId, @NotNull BuildRootIndex rootIndex) { return rootIndex.getTargetRoots(this, null).get(Integer.parseInt(rootId)); } | findRootDescriptor |
2,723 | String () { return "Artifact '" + getArtifact().getName() + "'"; } | getPresentableName |
2,724 | Collection<File> (@NotNull CompileContext context) { String outputFilePath = getArtifact().getOutputFilePath(); return outputFilePath != null && !StringUtil.isEmpty(outputFilePath) ? Collections.singleton(new File(FileUtil.toSystemDependentName(outputFilePath))) : Collections.emptyList(); } | getOutputRoots |
2,725 | Class<E> () { return myElementClass; } | getElementClass |
2,726 | LayoutElementBuildersRegistry () { return InstanceHolder.ourInstance; } | getInstance |
2,727 | void (JpsArtifact artifact, CopyToDirectoryInstructionCreator creator, ArtifactInstructionsBuilderContext context) { context.enterArtifact(artifact); generateInstructions(artifact.getRootElement(), creator, context); } | generateInstructions |
2,728 | void (JpsPackagingElement layoutElement, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { final LayoutElementBuilderService builder = getElementBuilder(layoutElement); if (builder != null) { //noinspection unchecked builder.generateInstructions(layoutElement, i... | generateInstructions |
2,729 | void (JpsCompositePackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { generateInstructions(element.getChildren(), instructionCreator, builderContext); } | generateChildrenInstructions |
2,730 | void (JpsComplexPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { final List<JpsPackagingElement> substitution = element.getSubstitution(); if (substitution != null) { generateInstructions(substitution, instructionCreator, builderContex... | generateSubstitutionInstructions |
2,731 | void (final List<JpsPackagingElement> elements, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { for (JpsPackagingElement child : elements) { generateInstructions(child, instructionCreator, builderContext); } } | generateInstructions |
2,732 | void (@NotNull List<JpsModuleSourceRoot> roots, @NotNull ArtifactCompilerInstructionCreator creator, @NotNull JpsPackagingElement contextElement) { for (JpsModuleSourceRoot root : roots) { File source = root.getFile(); ArtifactCompilerInstructionCreator target; JavaSourceRootProperties javaProperties = root.getProperti... | generateModuleSourceInstructions |
2,733 | void (@Nullable String outputUrl, @NotNull ArtifactCompilerInstructionCreator creator, @NotNull JpsPackagingElement contextElement) { if (outputUrl != null) { File directory = JpsPathUtil.urlToFile(outputUrl); creator.addDirectoryCopyInstructions(directory, null, creator.getInstructionsBuilder().createCopyingHandler(di... | generateModuleOutputInstructions |
2,734 | void (JpsArtifactRootElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { generateChildrenInstructions(element, instructionCreator, builderContext); } | generateInstructions |
2,735 | void (JpsDirectoryPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { generateChildrenInstructions(element, instructionCreator.subFolder(element.getDirectoryName()), builderContext); } | generateInstructions |
2,736 | void (JpsArchivePackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { generateChildrenInstructions(element, instructionCreator.archive(element.getArchiveName()), builderContext); } | generateInstructions |
2,737 | void (JpsDirectoryCopyPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { final String dirPath = element.getDirectoryPath(); if (dirPath != null) { final File directory = new File(dirPath); instructionCreator.addDirectoryCopyInstructions(... | generateInstructions |
2,738 | void (JpsFileCopyPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { final String filePath = element.getFilePath(); if (filePath != null) { final File file = new File(filePath); final String fileName = element.getRenamedOutputFileName(); ... | generateInstructions |
2,739 | void (JpsExtractedDirectoryPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { final String jarPath = element.getFilePath(); final String pathInJar = element.getPathInJar(); instructionCreator.addExtractDirectoryInstruction(new File(jarPa... | generateInstructions |
2,740 | void (JpsProductionModuleOutputPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { generateModuleOutputInstructions(element.getOutputUrl(), instructionCreator, element); } | generateInstructions |
2,741 | void (JpsProductionModuleSourcePackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { JpsModule module = element.getModuleReference().resolve(); if (module != null) { List<JpsModuleSourceRoot> productionSources = ContainerUtil.filter(module.... | generateInstructions |
2,742 | void (JpsTestModuleOutputPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { generateModuleOutputInstructions(element.getOutputUrl(), instructionCreator, element); } | generateInstructions |
2,743 | void (JpsComplexPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { generateSubstitutionInstructions(element, instructionCreator, builderContext); } | generateInstructions |
2,744 | void (JpsArtifactOutputPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { final JpsArtifact artifact = element.getArtifactReference().resolve(); if (artifact == null) return; Set<JpsArtifact> parentArtifacts = builderContext.getParentArt... | generateInstructions |
2,745 | String (String outputPath, String pathInJar) { LOG.assertTrue(outputPath.length() > 0 && outputPath.charAt(outputPath.length() - 1) != '/'); return outputPath + "!/" + pathInJar; } | appendPathInJar |
2,746 | String () { return myPathInJar; } | getPathInJar |
2,747 | JarInfo () { return myJarInfo; } | getJarInfo |
2,748 | String () { return myPathInJar + "(" + getOutputPath() + ")"; } | toString |
2,749 | String () { return myOutputPath; } | getOutputPath |
2,750 | String () { return myOutputFilePath; } | getOutputFilePath |
2,751 | JarDestinationInfo (@NotNull String pathInJar) { return new JarDestinationInfo(childPathInJar(pathInJar), myJarInfo, myJarDestination); } | createFileDestination |
2,752 | void (ArtifactRootDescriptor descriptor) { myJarInfo.addContent(StringUtil.trimStart(((JarDestinationInfo)descriptor.getDestinationInfo()).getPathInJar(), "/"), descriptor); } | onAdded |
2,753 | String (String fileName) { return myPathInJar.length() == 0 ? fileName : myPathInJar + "/" + fileName; } | childPathInJar |
2,754 | PackIntoArchiveInstructionCreator (@NotNull String directoryName) { return new PackIntoArchiveInstructionCreator(myInstructionsBuilder, myJarInfo, childPathInJar(directoryName), myJarDestination); } | subFolder |
2,755 | ArtifactCompilerInstructionCreator (@NotNull String archiveFileName) { final JarDestinationInfo destination = createFileDestination(archiveFileName); final JarInfo jarInfo = new JarInfo(destination); final String outputPath = myJarDestination.getOutputPath() + "/" + archiveFileName; if (!myInstructionsBuilder.registerJ... | archive |
2,756 | IgnoredFileIndex () { return myIgnoredFileIndex; } | getIgnoredFileIndex |
2,757 | boolean (@NotNull ArtifactRootDescriptor descriptor) { myDescriptors.add(descriptor); return true; } | addDestination |
2,758 | ModuleExcludeIndex () { return myRootsIndex; } | getRootsIndex |
2,759 | boolean (@NotNull JarInfo jarInfo, @NotNull String outputPath) { if (myJarByPath.containsKey(outputPath)) { return false; } myJarByPath.put(outputPath, jarInfo); return true; } | registerJarFile |
2,760 | List<ArtifactRootDescriptor> () { return myDescriptors; } | getDescriptors |
2,761 | FileBasedArtifactRootDescriptor (@NotNull File file, @NotNull SourceFileFilter filter, final @NotNull DestinationInfo destinationInfo, FileCopyingHandler handler) { return new FileBasedArtifactRootDescriptor(file, filter, myRootIndex++, myBuildTarget, destinationInfo, handler); } | createFileBasedRoot |
2,762 | FileCopyingHandler (@NotNull File file, @NotNull JpsPackagingElement contextElement, @NotNull ArtifactCompilerInstructionCreator instructionCreator) { File targetDirectory = instructionCreator.getTargetDirectory(); if (targetDirectory != null) { for (ArtifactRootCopyingHandlerProvider provider : myCopyingHandlerProvide... | createCopyingHandler |
2,763 | JarBasedArtifactRootDescriptor (@NotNull File jarFile, @NotNull String pathInJar, @NotNull SourceFileFilter filter, @NotNull DestinationInfo destinationInfo, @NotNull Condition<? super String> pathInJarFilter) { return new JarBasedArtifactRootDescriptor(jarFile, pathInJar, filter, myRootIndex++, myBuildTarget, destinat... | createJarBasedRoot |
2,764 | String () { return myRoot.getPath() + JarPathUtil.JAR_SEPARATOR + myPathInJar; } | getFullPath |
2,765 | DestinationInfo (@NotNull String outputFileName) { return null; } | createFileDestination |
2,766 | void (ArtifactRootDescriptor descriptor) { } | onAdded |
2,767 | DestinationInfo () { return null; } | createDirectoryDestination |
2,768 | SkipAllInstructionCreator (@NotNull String directoryName) { return this; } | subFolder |
2,769 | SkipAllInstructionCreator (@NotNull String archiveFileName) { return this; } | archive |
2,770 | File () { return null; } | getTargetDirectory |
2,771 | DestinationInfo (@NotNull String outputFileName) { return new ExplodedDestinationInfo(myOutputPath + "/" + outputFileName); } | createFileDestination |
2,772 | ExplodedDestinationInfo () { return new ExplodedDestinationInfo(myOutputPath); } | createDirectoryDestination |
2,773 | void (ArtifactRootDescriptor descriptor) { } | onAdded |
2,774 | CopyToDirectoryInstructionCreator (@NotNull String directoryName) { return new CopyToDirectoryInstructionCreator(myInstructionsBuilder, myOutputPath + "/" + directoryName); } | subFolder |
2,775 | ArtifactCompilerInstructionCreator (@NotNull String archiveFileName) { String jarOutputPath = myOutputPath + "/" + archiveFileName; final ExplodedDestinationInfo destination = new ExplodedDestinationInfo(jarOutputPath); final JarInfo jarInfo = new JarInfo(destination); if (!myInstructionsBuilder.registerJarFile(jarInfo... | archive |
2,776 | void (@NotNull File directoryUrl) { addDirectoryCopyInstructions(directoryUrl, null); } | addDirectoryCopyInstructions |
2,777 | void (@NotNull File directory, @Nullable SourceFileFilter filter) { addDirectoryCopyInstructions(directory, filter, FilterCopyHandler.DEFAULT); } | addDirectoryCopyInstructions |
2,778 | void (@NotNull File directory, @Nullable SourceFileFilter filter, @NotNull FileCopyingHandler copyingHandler) { final boolean copyExcluded = myInstructionsBuilder.getRootsIndex().isExcluded(directory); SourceFileFilter fileFilter = new SourceFileFilterImpl(filter, myInstructionsBuilder.getRootsIndex(), myInstructionsBu... | addDirectoryCopyInstructions |
2,779 | void (@NotNull File jarFile, @NotNull String pathInJar) { addExtractDirectoryInstruction(jarFile, pathInJar, Conditions.alwaysTrue()); } | addExtractDirectoryInstruction |
2,780 | void (@NotNull File jarFile, @NotNull String pathInJar, @NotNull Condition<? super String> pathInJarFilter) { //an entry of a jar file is excluded if and only if the jar file itself is excluded. In that case we should unpack entries to the artifact //because the jar itself is explicitly added to the artifact layout. fi... | addExtractDirectoryInstruction |
2,781 | ArtifactCompilerInstructionCreator (@NotNull String relativeDirectoryPath) { final List<String> folders = StringUtil.split(relativeDirectoryPath, "/"); ArtifactCompilerInstructionCreator current = this; for (String folder : folders) { current = current.subFolder(folder); } return current; } | subFolderByRelativePath |
2,782 | void (@NotNull File file, @NotNull String outputFileName) { addFileCopyInstruction(file, outputFileName, FilterCopyHandler.DEFAULT); } | addFileCopyInstruction |
2,783 | void (@NotNull File file, @NotNull String outputFileName, @NotNull FileCopyingHandler copyingHandler) { DestinationInfo destination = createFileDestination(outputFileName); if (destination != null) { FileBasedArtifactRootDescriptor root = myInstructionsBuilder.createFileBasedRoot(file, SourceFileFilter.ALL, destination... | addFileCopyInstruction |
2,784 | ArtifactInstructionsBuilder () { return myInstructionsBuilder; } | getInstructionsBuilder |
2,785 | boolean (@NotNull String fullFilePath) { if (myBaseFilter != null && !myBaseFilter.accept(fullFilePath)) return false; if (myIgnoredFileIndex.isIgnored(PathUtilRt.getFileName(fullFilePath))) { return false; } if (!myIncludeExcluded) { final File file = JarPathUtil.getLocalFile(fullFilePath); if (myRootsIndex.isExcluded... | accept |
2,786 | JpsModel () { return myModel; } | getModel |
2,787 | BuildDataPaths () { return myDataPaths; } | getDataPaths |
2,788 | boolean (JpsArtifact artifact) { return myParentArtifacts.add(artifact); } | enterArtifact |
2,789 | Set<JpsArtifact> () { return myParentArtifacts; } | getParentArtifacts |
2,790 | void (JpsArtifact artifact) { myParentArtifacts.remove(artifact); } | leaveArtifact |
2,791 | void (@NotNull PrintWriter out) { } | writeConfiguration |
2,792 | FileFilter () { return myFilter; } | createFileFilter |
2,793 | boolean (@NotNull String fullFilePath) { return true; } | accept |
2,794 | boolean (@NotNull String fullFilePath, ProjectDescriptor projectDescriptor) { return true; } | shouldBeCopied |
2,795 | String () { return getFullPath(); } | toString |
2,796 | void (PrintWriter out, PathRelativizerService relativizer) { out.println(relativizer.toRelative(getFullPath())); out.println("->" + relativizer.toRelative(myDestinationInfo.getOutputPath())); } | writeConfiguration |
2,797 | ArtifactBuildTarget () { return myTarget; } | getTarget |
2,798 | FileFilter () { return file -> myFilter.accept(file.getAbsolutePath()); } | createFileFilter |
2,799 | File () { return myRoot; } | getRootFile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.