public static List<String> getBuildProcessApplicationClasspath(boolean isLauncherUsed) { final Set<String> cp = ContainerUtil.newHashSet(); cp.add(getResourcePath(BuildMain.class)); cp.addAll(PathManager.getUtilClassPath()); // util cp.add(getResourcePath(Message.class)); // protobuf cp.add(getResourcePath(NetUtil.class)); // netty cp.add(getResourcePath(ClassWriter.class)); // asm cp.add(getResourcePath(ClassVisitor.class)); // asm-commons cp.add(getResourcePath(JpsModel.class)); // jps-model-api cp.add(getResourcePath(JpsModelImpl.class)); // jps-model-impl cp.add(getResourcePath(JpsProjectLoader.class)); // jps-model-serialization cp.add(getResourcePath(AlienFormFileException.class)); // forms-compiler cp.add(getResourcePath(GridConstraints.class)); // forms-rt cp.add(getResourcePath(CellConstraints.class)); // jGoodies-forms cp.add(getResourcePath(NotNullVerifyingInstrumenter.class)); // not-null cp.add(getResourcePath(IXMLBuilder.class)); // nano-xml cp.add(getResourcePath(SequenceLock.class)); // jsr166 cp.add(getJpsPluginSystemClassesPath().getAbsolutePath().replace('\\', '/')); //don't forget to update layoutCommunityJps() in layouts.gant accordingly if (!isLauncherUsed) { appendJavaCompilerClasspath(cp); } try { final Class<?> cmdLineWrapper = Class.forName("com.intellij.rt.execution.CommandLineWrapper"); cp.add(getResourcePath(cmdLineWrapper)); // idea_rt.jar } catch (Throwable ignored) { } return ContainerUtil.newArrayList(cp); }
public void read(final Element element, final PropertiesProvider provider) throws Exception { if (element == null) { throw new IllegalArgumentException("element cannot be null"); } if (!Utils.FORM_NAMESPACE.equals(element.getNamespace().getURI())) { throw new AlienFormFileException(); } if(!"form".equals(element.getName())){ throw new UnexpectedFormElementException("unexpected element: "+element); } setId("root"); myClassToBind = element.getAttributeValue(UIFormXmlConstants.ATTRIBUTE_BIND_TO_CLASS); // Constraints and properties for(Iterator i=element.getChildren().iterator(); i.hasNext();){ final Element child = (Element)i.next(); if (child.getName().equals(UIFormXmlConstants.ELEMENT_BUTTON_GROUPS)) { readButtonGroups(child); } else if (child.getName().equals(UIFormXmlConstants.ELEMENT_INSPECTION_SUPPRESSIONS)) { readInspectionSuppressions(child); } else { final LwComponent component = createComponentFromTag(child); addComponent(component); component.read(child, provider); } } myMainComponentBinding = element.getAttributeValue("stored-main-component-binding"); }
public static List<String> getBuildProcessApplicationClasspath() { final Set<String> cp = ContainerUtil.newHashSet(); cp.add(getResourcePath(BuildMain.class)); cp.addAll(PathManager.getUtilClassPath()); // util cp.add(getResourcePath(Message.class)); // protobuf cp.add(getResourcePath(Version.class)); // netty cp.add(getResourcePath(ClassWriter.class)); // asm cp.add(getResourcePath(ClassVisitor.class)); // asm-commons cp.add(getResourcePath(JpsModel.class)); // jps-model-api cp.add(getResourcePath(JpsModelImpl.class)); // jps-model-impl cp.add(getResourcePath(JpsProjectLoader.class)); // jps-model-serialization cp.add(getResourcePath(AlienFormFileException.class)); // forms-compiler cp.add(getResourcePath(GridConstraints.class)); // forms-rt cp.add(getResourcePath(CellConstraints.class)); // jGoodies-forms cp.add(getResourcePath(NotNullVerifyingInstrumenter.class)); // not-null cp.add(getResourcePath(IXMLBuilder.class)); // nano-xml final Class<StandardJavaFileManager> optimizedFileManagerClass = getOptimizedFileManagerClass(); if (optimizedFileManagerClass != null) { cp.add(getResourcePath(optimizedFileManagerClass)); // optimizedFileManager } try { final Class<?> cmdLineWrapper = Class.forName("com.intellij.rt.execution.CommandLineWrapper"); cp.add(getResourcePath(cmdLineWrapper)); // idea_rt.jar } catch (Throwable ignored) { } for (JavaCompiler javaCompiler : ServiceLoader.load(JavaCompiler.class)) { // Eclipse compiler final String compilerResource = getResourcePath(javaCompiler.getClass()); final String name = PathUtilRt.getFileName(compilerResource); if (name.startsWith("ecj-") && name.endsWith(".jar")) { cp.add(compilerResource); } } return ContainerUtil.newArrayList(cp); }