Package com.intellij.execution.configurations

Examples of com.intellij.execution.configurations.RuntimeConfigurationError


  @Override
  public final void checkConfiguration(@NotNull OsgiRunConfiguration runConfiguration) throws RuntimeConfigurationException {
    // make sure that if the user wants to re-use a runtime directory that it exists
    if (!runConfiguration.isGenerateWorkingDir()) {
      if (StringUtil.isEmptyOrSpaces(runConfiguration.getWorkingDir())) {
        throw new RuntimeConfigurationError(OsmorcBundle.message("run.configuration.working.dir.set"));
      }

      File dir = new File(runConfiguration.getWorkingDir());
      if (!dir.isDirectory()) {
        if (!dir.mkdirs()) {
          throw new RuntimeConfigurationError(OsmorcBundle.message("run.configuration.working.dir.create"));
        }
        FileUtil.delete(dir);
      }
    }
View Full Code Here


    checkFile(fileName, expectedFileMessage);
  }

  private void checkFile(String fileName, String expectedFileMessage) throws RuntimeConfigurationError {
    if (Strings.isNullOrEmpty(fileName)) {
      throw new RuntimeConfigurationError(expectedFileMessage);
    }
    findNotNullFile(fileName);
  }
View Full Code Here

TOP

Related Classes of com.intellij.execution.configurations.RuntimeConfigurationError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.