public void checkConfiguration() throws RuntimeConfigurationException { JavaParametersUtil.checkAlternativeJRE(myConfiguration); ProgramParametersUtil.checkWorkingDirectoryExist( myConfiguration, myConfiguration.getProject(), myConfiguration.getConfigurationModule().getModule()); }
@Override public void checkConfiguration() throws RuntimeConfigurationException { final TestNGTestObject testObject = TestNGTestObject.fromConfig(this); if (testObject != null) { testObject.checkConfiguration(); } JavaRunConfigurationExtensionManager.checkConfigurationIsValid(this); ProgramParametersUtil.checkWorkingDirectoryExist( this, getProject(), getConfigurationModule().getModule()); JavaParametersUtil.checkAlternativeJRE(this); // TODO add various checks here }
private HaskellParameters createHaskellParameters() { HaskellParameters params = new HaskellParameters(); Module module = configuration.getModule(); if (module == null) { return null; } ProgramParametersUtil.configureConfiguration(params, configuration); params.configureByModule(module); params.setMainFile(configuration.getMainFile()); params.setRuntimeFlags(configuration.getRuntimeFlags()); return params; }
@Override public void checkConfiguration() throws RuntimeConfigurationException { JavaParametersUtil.checkAlternativeJRE(this); final String className = MAIN_CLASS_NAME; if (className == null || className.length() == 0) { throw new RuntimeConfigurationError( ExecutionBundle.message("no.main.class.specified.error.text")); } if (SCRATCH_FILE_ID <= 0) { throw new RuntimeConfigurationError("No scratch file associated with configuration"); } if (getScratchVirtualFile() == null) { throw new RuntimeConfigurationError("Associated scratch file not found"); } ProgramParametersUtil.checkWorkingDirectoryExist( this, getProject(), getConfigurationModule().getModule()); JavaRunConfigurationExtensionManager.checkConfigurationIsValid(this); }
@Override public void checkConfiguration() throws RuntimeConfigurationException { JavaParametersUtil.checkAlternativeJRE(myConfiguration); ProgramParametersUtil.checkWorkingDirectoryExist( myConfiguration, myConfiguration.getProject(), myConfiguration.getConfigurationModule().getModule()); final String dirName = myConfiguration.getPersistentData().getDirName(); if (dirName == null || dirName.isEmpty()) { throw new RuntimeConfigurationError("Directory is not specified"); } final VirtualFile file = LocalFileSystem.getInstance().findFileByPath(FileUtil.toSystemIndependentName(dirName)); if (file == null) { throw new RuntimeConfigurationWarning("Directory \'" + dirName + "\' is not found"); } final Module module = myConfiguration.getConfigurationModule().getModule(); if (module == null) { throw new RuntimeConfigurationError("Module to choose classpath from is not specified"); } }