Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
200 | String () { return myId; } | getId |
201 | Element () { return myOptions; } | getOptions |
202 | void (String id) { myId = id; } | setId |
203 | void (Element options) { myOptions = options; } | setOptions |
204 | String () { return myArtifactType; } | getArtifactType |
205 | boolean () { return myBuildOnMake; } | isBuildOnMake |
206 | String () { return myExternalSystemId; } | getExternalSystemId |
207 | String () { return myExternalSystemIdInInternalStorage; } | getExternalSystemIdInInternalStorage |
208 | String () { return myOutputPath; } | getOutputPath |
209 | Element () { return myRootElement; } | getRootElement |
210 | List<ArtifactPropertiesState> () { return myPropertiesList; } | getPropertiesList |
211 | void (List<ArtifactPropertiesState> propertiesList) { myPropertiesList = propertiesList; } | setPropertiesList |
212 | void (String artifactType) { myArtifactType = artifactType; } | setArtifactType |
213 | void (@NlsSafe String name) { myName = name; } | setName |
214 | void (String outputPath) { myOutputPath = outputPath; } | setOutputPath |
215 | void (boolean buildOnMake) { myBuildOnMake = buildOnMake; } | setBuildOnMake |
216 | void (String externalSystemId) { myExternalSystemId = externalSystemId; } | setExternalSystemId |
217 | void (String externalSystemIdInInternalStorage) { myExternalSystemIdInInternalStorage = externalSystemIdInInternalStorage; } | setExternalSystemIdInInternalStorage |
218 | void (Element rootElement) { myRootElement = rootElement; } | setRootElement |
219 | void (@NotNull JpsProject project, @NotNull Element componentTag) { List<JpsRemoteRepositoryDescription> result = new ArrayList<>(); List<Element> children = componentTag.getChildren(ELEMENT_TAG); for (Element repoElement : children) { String id = null; String name = null; String url = null; for (Element element : repo... | loadExtension |
220 | JpsModuleSerializationDataExtensionImpl () { return new JpsModuleSerializationDataExtensionImpl(myBaseDirectory); } | createCopy |
221 | void (@NotNull JpsModuleSerializationDataExtensionImpl modified) { } | applyChanges |
222 | File () { return myBaseDirectory.toFile(); } | getBaseDirectory |
223 | JpsPathVariablesConfigurationImpl () { return new JpsPathVariablesConfigurationImpl(myPathVariables); } | createCopy |
224 | void (@NotNull JpsPathVariablesConfigurationImpl modified) { } | applyChanges |
225 | void (@NotNull String name, @NotNull String value) { myPathVariables.put(name, value); } | addPathVariable |
226 | void (@NotNull String name) { myPathVariables.remove(name); } | removePathVariable |
227 | String (@NotNull String name) { return myPathVariables.get(name); } | getUserVariableValue |
228 | JpsProjectSerializationDataExtensionImpl () { return new JpsProjectSerializationDataExtensionImpl(myBaseDirectory); } | createCopy |
229 | void (@NotNull JpsProjectSerializationDataExtensionImpl modified) { } | applyChanges |
230 | File () { return myBaseDirectory.toFile(); } | getBaseDirectory |
231 | void () { loadProject("/jps/model-serialization/testData/fileEncoding/fileEncoding.ipr"); JpsEncodingProjectConfiguration configuration = JpsEncodingConfigurationService.getInstance().getEncodingConfiguration(myProject); assertNotNull(configuration); assertEncoding("windows-1251", "dir/a.txt", configuration); assertEnc... | test |
232 | void (final String encoding, final String path, JpsEncodingProjectConfiguration configuration) { assertEquals(encoding, configuration.getEncoding(new File(getAbsolutePath(path)))); } | assertEncoding |
233 | void () { loadProject(SAMPLE_PROJECT_PATH); List<JpsArtifact> artifacts = getService().getSortedArtifacts(myProject); assertEquals(2, artifacts.size()); assertEquals("dir", artifacts.get(0).getName()); assertEquals("jar", artifacts.get(1).getName()); } | testLoadProject |
234 | JpsArtifactService () { return JpsArtifactService.getInstance(); } | getService |
235 | void () { doTest("jps/model-serialization/testData/compilerConfiguration/compilerConfiguration.ipr"); } | testLoadFromIpr |
236 | void () { doTest("jps/model-serialization/testData/compilerConfigurationDir"); } | testLoadFromDirectory |
237 | void (final String path) { loadProject(path); JpsJavaCompilerConfiguration configuration = JpsJavaExtensionService.getInstance().getCompilerConfiguration(myProject); assertNotNull(configuration); assertFalse(configuration.isClearOutputDirectoryOnRebuild()); assertFalse(configuration.isAddNotNullAssertions()); Processor... | doTest |
238 | boolean (JpsCompilerExcludes excludes, final String path) { return excludes.isExcluded(JpsPathUtil.urlToFile(getUrl(path))); } | isExcluded |
239 | void () { loadProject(SAMPLE_PROJECT_PATH); assertEquals("sampleProject", myProject.getName()); checkSampleProjectConfiguration(getTestDataAbsoluteFile(SAMPLE_PROJECT_PATH).toFile()); } | testLoadProject |
240 | void () { loadProject(SAMPLE_PROJECT_IPR_PATH); assertEquals("sampleProject", myProject.getName()); checkSampleProjectConfiguration(getTestDataAbsoluteFile(SAMPLE_PROJECT_IPR_PATH).toFile().getParentFile()); } | testLoadIprProject |
241 | void (File baseDirPath) { assertTrue(FileUtil.filesEqual(baseDirPath, JpsModelSerializationDataService.getBaseDirectory(myProject))); List<JpsModule> modules = myProject.getModules(); assertEquals(3, modules.size()); JpsModule main = modules.get(0); assertEquals("main", main.getName()); JpsModule util = modules.get(1);... | checkSampleProjectConfiguration |
242 | void () { String relativePath = "/jps/model-serialization/testData/run-configurations/run-configurations.ipr"; Path absolutePath = getTestDataAbsoluteFile(relativePath); loadProject(relativePath); assertEquals("run-configurations", myProject.getName()); assertTrue(FileUtil.filesEqual(absolutePath.getParent().toFile(), ... | testFileBasedProjectNameAndBaseDir |
243 | void () { loadProject("/jps/model-serialization/testData/run-configurations-dir"); assertEquals("run-configurations-dir", myProject.getName()); } | testDirectoryBasedProjectName |
244 | void () { loadProject("/jps/model-serialization/testData/imlUnderDotIdea"); JpsModule module = assertOneElement(myProject.getModules()); JpsModuleSourceRoot root = assertOneElement(module.getSourceRoots()); assertEquals(getUrl("src"), root.getUrl()); } | testImlUnderDotIdea |
245 | void () { loadProject("/jps/model-serialization/testData/testModuleProperties/testModuleProperties.ipr"); List<JpsModule> modules = myProject.getModules(); assertEquals(2, modules.size()); JpsModule testModule = modules.get(0); assertEquals("testModule", testModule.getName()); JpsModule productionModule = modules.get(1... | testTestModuleProperties |
246 | void () { loadProject("/jps/model-serialization/testData/testInvalidLanguageLevel/testInvalidLanguageLevel.ipr"); List<JpsModule> modules = myProject.getModules(); assertEquals(1, modules.size()); JpsModule testModule = modules.get(0); assertEquals("testModule", testModule.getName()); JpsJavaModuleExtension moduleExten... | testInvalidLanguageLevel |
247 | void () { String projectPath = "/jps/model-serialization/testData/excludePatterns"; loadProject(projectPath + "/excludePatterns.ipr"); JpsModule module = assertOneElement(myProject.getModules()); JpsExcludePattern pattern = assertOneElement(module.getExcludePatterns()); assertEquals("*.class", pattern.getPattern()); as... | testExcludePatterns |
248 | void () { loadProject("/jps/model-serialization/testData/projectSdkWithoutType/projectSdkWithoutType.ipr"); JpsSdkReference<JpsDummyElement> reference = myProject.getSdkReferencesTable().getSdkReference(JpsJavaSdkType.INSTANCE); assertNotNull(reference); assertEquals("1.6", reference.getSdkName()); } | testProjectSdkWithoutType |
249 | void () { loadProject("/jps/model-serialization/testData/invalidDependencyScope/invalidDependencyScope.ipr"); JpsModule module = assertOneElement(myProject.getModules()); List<JpsDependencyElement> dependencies = module.getDependenciesList().getDependencies(); assertEquals(3, dependencies.size()); JpsJavaDependencyExte... | testInvalidDependencyScope |
250 | void () { loadProject("/jps/model-serialization/testData/duplicatedModuleLibrary/duplicatedModuleLibrary.ipr"); JpsModule module = assertOneElement(myProject.getModules()); List<JpsDependencyElement> dependencies = module.getDependenciesList().getDependencies(); assertEquals(4, dependencies.size()); JpsLibrary lib1 = a... | testDuplicatedModuleLibrary |
251 | void () { loadProject("/jps/model-serialization/testData/matryoshka/.idea"); JpsJavaProjectExtension extension = JpsJavaExtensionService.getInstance().getProjectExtension(myProject); assertNotNull(extension); assertEquals(getUrl("out"), extension.getOutputUrl()); } | testDotIdeaUnderDotIdea |
252 | void () { loadProject(SAMPLE_PROJECT_PATH); checkEncodingConfigurationInSampleProject(); } | testLoadEncoding |
253 | void () { loadProject(SAMPLE_PROJECT_IPR_PATH); checkEncodingConfigurationInSampleProject(); } | testLoadEncodingIpr |
254 | void () { JpsEncodingConfigurationService service = JpsEncodingConfigurationService.getInstance(); assertEquals("UTF-8", service.getProjectEncoding(myModel)); JpsEncodingProjectConfiguration configuration = service.getEncodingConfiguration(myProject); assertNotNull(configuration); assertEquals("UTF-8", configuration.ge... | checkEncodingConfigurationInSampleProject |
255 | void () { String projectPath = "/jps/model-serialization/testData/resourceRoots/"; loadProject(projectPath + "resourceRoots.ipr"); JpsModule module = assertOneElement(myProject.getModules()); List<JpsModuleSourceRoot> roots = module.getSourceRoots(); assertSame(JavaSourceRootType.SOURCE, roots.get(0).getRootType()); ch... | testResourceRoots |
256 | void () { loadProject("/jps/model-serialization/testData/missingModuleSourcesOrderEntry/missingModuleSourcesOrderEntry.ipr"); JpsModule module = assertOneElement(myProject.getModules()); List<JpsDependencyElement> dependencies = module.getDependenciesList().getDependencies(); assertEquals(2, dependencies.size()); asser... | testMissingModuleSourcesOrderEntry |
257 | void (JpsModuleSourceRoot root, boolean forGenerated, String relativeOutput) { assertSame(JavaResourceRootType.RESOURCE, root.getRootType()); JavaResourceRootProperties properties = root.getProperties(JavaResourceRootType.RESOURCE); assertNotNull(properties); assertEquals(forGenerated, properties.isForGeneratedSources(... | checkResourceRoot |
258 | void () { String projectPath = "/jps/model-serialization/testData/unloadedModule"; loadProject(projectPath); assertEquals("main", assertOneElement(myProject.getModules()).getName()); } | testUnloadedModule |
259 | void () { loadProject("/jps/model-serialization/testData/missingImlFile/missingImlFile.ipr"); assertEmpty(myProject.getModules()); } | testMissingImlFile |
260 | void () { loadProject("/jps/model-serialization/testData/missingContentUrlAttribute/missingContentUrlAttribute.ipr"); JpsModule module = assertOneElement(myProject.getModules()); assertEquals("missingContentUrlAttribute", module.getName()); } | testMissingContentUrlAttribute |
261 | void () { long start = System.nanoTime(); loadProjectByAbsolutePath(PathManager.getHomePath()); assertTrue(myProject.getModules().size() > 0); System.out.println("JpsProjectSerializationTest: " + myProject.getModules().size() + " modules, " + myProject.getLibraryCollection().getLibraries().size() + " libraries and " + ... | testLoadIdeaProject |
262 | void () { loadProject("/jps/model-serialization/testData/excludesInLibraries"); JpsLibrary library = assertOneElement(myProject.getLibraryCollection().getLibraries()); assertEquals("junit", library.getName()); assertEquals(JpsPathUtil.getLibraryRootUrl(new File(getAbsolutePath("lib/junit.jar"))), assertOneElement(libra... | testExcludesInLibraries |
263 | void () { JpsMavenRepositoryLibraryDescriptor properties = loadLibrary("plain"); assertEquals("junit", properties.getGroupId()); assertEquals("junit", properties.getArtifactId()); assertEquals("3.8.1", properties.getVersion()); assertTrue(properties.isIncludeTransitiveDependencies()); assertEmpty(properties.getExcluded... | testPlain |
264 | void () { JpsMavenRepositoryLibraryDescriptor properties = loadLibrary("without-transitive-dependencies"); assertFalse(properties.isIncludeTransitiveDependencies()); assertEmpty(properties.getExcludedDependencies()); } | testWithoutTransitiveDependencies |
265 | void () { JpsMavenRepositoryLibraryDescriptor properties = loadLibrary("with-excluded-dependencies"); assertTrue(properties.isIncludeTransitiveDependencies()); assertSameElements(properties.getExcludedDependencies(), "org.apache.httpcomponents:httpclient"); } | testWithExcludedDependencies |
266 | JpsMavenRepositoryLibraryDescriptor (String name) { loadProject("/jps/model-serialization/testData/repositoryLibraries"); JpsLibrary library = myProject.getLibraryCollection().findLibrary(name); assertNotNull(library); assertSame(JpsRepositoryLibraryType.INSTANCE, library.getType()); JpsTypedLibrary<JpsSimpleElement<Jp... | loadLibrary |
267 | void () { loadGlobalSettings(OPTIONS_DIR); final List<JpsLibrary> libraries = myModel.getGlobal().getLibraryCollection().getLibraries(); assertEquals(3, libraries.size()); assertEquals("Gant", libraries.get(0).getName()); final JpsLibrary sdk1 = libraries.get(1); assertEquals("1.5", sdk1.getName()); final JpsLibrary sd... | testLoadSdksAndGlobalLibraries |
268 | void () { loadGlobalSettings(OPTIONS_DIR); JpsPathVariablesConfiguration configuration = JpsModelSerializationDataService.getPathVariablesConfiguration(myModel.getGlobal()); assertNotNull(configuration); assertEquals("/home/nik/.m2/repository", configuration.getUserVariableValue(PathMacrosImpl.MAVEN_REPOSITORY)); asser... | testLoadPathVariables |
269 | void () { loadGlobalSettings(OPTIONS_DIR); assertEquals("windows-1251", JpsEncodingConfigurationService.getInstance().getGlobalEncoding(myModel.getGlobal())); } | testLoadEncoding |
270 | void () { loadGlobalSettings(OPTIONS_DIR); assertEquals("CVS;.svn;", myModel.getGlobal().getFileTypesConfiguration().getIgnoredPatternString()); } | testLoadIgnoredFiles |
271 | void (final String relativePath) { loadProjectByAbsolutePath(getTestDataFileAbsolutePath(relativePath)); } | loadProject |
272 | void (String path) { myProjectHomePath = FileUtilRt.toSystemIndependentName(path); if (myProjectHomePath.endsWith(".ipr")) { myProjectHomePath = PathUtil.getParentPath(myProjectHomePath); } try { JpsProjectLoader.loadProject(myProject, getPathVariables(), Paths.get(path)); } catch (IOException e) { throw new RuntimeExc... | loadProjectByAbsolutePath |
273 | String (String relativePath) { return VfsUtilCore.pathToUrl(getAbsolutePath(relativePath)); } | getUrl |
274 | String (String relativePath) { return myProjectHomePath + "/" + relativePath; } | getAbsolutePath |
275 | void (final String optionsDir) { try { String optionsPath = getTestDataFileAbsolutePath(optionsDir); Map<String,String> pathVariables = getPathVariables(); JpsPathVariablesConfiguration configuration = JpsModelSerializationDataService.getOrCreatePathVariablesConfiguration(myModel.getGlobal()); for (Map.Entry<String, St... | loadGlobalSettings |
276 | String (@NotNull String relativePath) { return PathManagerEx.findFileUnderProjectHome(relativePath, getClass()).getAbsolutePath(); } | getTestDataFileAbsolutePath |
277 | Path (@NotNull String relativePath) { return Paths.get(getTestDataFileAbsolutePath(relativePath)); } | getTestDataAbsoluteFile |
278 | Element (@NotNull Path imlFile) { JpsMacroExpander expander = JpsProjectLoader.createModuleMacroExpander(Collections.emptyMap(), imlFile); return JpsLoaderBase.loadRootElement(imlFile, expander); } | loadModuleRootTag |
279 | void () { doTest("jps/model-serialization/testData/run-configurations/run-configurations.ipr"); } | testLoadIpr |
280 | void () { doTest("jps/model-serialization/testData/run-configurations-dir"); } | testLoadDirectoryBased |
281 | void (final String relativePath) { loadProject(relativePath); List<JpsTypedRunConfiguration<JpsApplicationRunConfigurationProperties>> configurations = ContainerUtil.newArrayList(myProject.getRunConfigurations(JpsApplicationRunConfigurationType.INSTANCE)); assertEquals(2, configurations.size()); JpsTypedRunConfiguratio... | doTest |
282 | JpsRunConfiguration (List<JpsRunConfiguration> configurations, String name) { for (JpsRunConfiguration configuration : configurations) { if (configuration.getName().equals(name)) { return configuration; } } throw new AssertionFailedError("'" + name + "' run configuration not found"); } | findByName |
283 | void (JpsModel model) { Map<String, Object> variables = new HashMap<>(); variables.put("project", model.getProject()); variables.put("global", model.getGlobal()); try { new GroovyShell(new Binding(variables)).evaluate(myScriptFile); } catch (IOException e) { throw new RuntimeException(e); } } | run |
284 | void (String[] args) { Standalone instance = new Standalone(); List<String> projectPaths; try { projectPaths = Args.parse(instance, args); } catch (Exception e) { printUsageAndExit(); return; } if (projectPaths.isEmpty()) { System.out.println("Path to project is not specified"); printUsageAndExit(); } if (projectPaths.... | main |
285 | void () { Args.usage(System.err, new Standalone()); System.exit(1); } | printUsageAndExit |
286 | int (final String projectPath) { String globalOptionsPath = null; if (configPath != null) { File optionsDir = new File(configPath, "options"); if (!optionsDir.isDirectory()) { System.err.println("'" + configPath + "' is not valid config path: " + optionsDir.getAbsolutePath() + " not found"); return 1; } globalOptionsPa... | loadAndRunBuild |
287 | void (BuildMessage msg) { String messageText; if (msg instanceof CompilerMessage) { CompilerMessage compilerMessage = (CompilerMessage) msg; if (compilerMessage.getSourcePath() == null) { messageText = msg.getMessageText(); } else if (compilerMessage.getLine() < 0) { messageText = compilerMessage.getSourcePath() + ": "... | processMessage |
288 | boolean () { return hasErrors; } | hasErrors |
289 | void (DirContainer container) { containers.add(container); } | addDir |
290 | void (JarContainer container) { containers.add(container); } | addJar |
291 | void (ZipContainer container) { containers.add(container); } | addZip |
292 | void (RenamedFileContainer container) { containers.add(container); } | addRenamedFile |
293 | void (ExtractedDirContent content) { containers.add(content); } | addExtractedDir |
294 | void (IdeaModule module) { containers.add(new FileSetContainer(module)); } | addModule |
295 | void (IdeaModuleTests module) { containers.add(new FileSetContainer(module)); } | addModuleTests |
296 | void (FileSet fileSet) { containers.add(new FileSetContainer(fileSet)); } | addFileset |
297 | void (File dir) { destDir = dir; } | setTodir |
298 | File () { return destDir; } | getDestDir |
299 | File (String name) { File localTmp = new File(tempDir, "_" + counter + "/"); counter++; localTmp.mkdirs(); return new File(localTmp, name); } | allocateTempFile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.