コード例 #1
0
 protected JpsSdk<JpsDummyElement> addJdk(final String name, final String path) {
   String homePath = System.getProperty("java.home");
   String versionString = System.getProperty("java.version");
   JpsTypedLibrary<JpsSdk<JpsDummyElement>> jdk =
       myModel.getGlobal().addSdk(name, homePath, versionString, JpsJavaSdkType.INSTANCE);
   jdk.addRoot(JpsPathUtil.pathToUrl(path), JpsOrderRootType.COMPILED);
   return jdk.getProperties();
 }
コード例 #2
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   myModel = JpsElementFactory.getInstance().createModel();
   myProject = myModel.getProject();
   myDataStorageRoot = FileUtil.createTempDirectory("compile-server-" + getProjectName(), null);
   myLogger = new TestProjectBuilderLogger();
   myBuildParams = new HashMap<String, String>();
 }