Ejemplo n.º 1
0
  public void checkConfiguration() throws RuntimeConfigurationException {
    String executableName = "";

    if (myRunnerParameters == null
        || complainIfEmpty(
            executableName = myRunnerParameters.getExecutableName(), INVALID_EXECUTABLE_FILE_NAME)
        || !new File(executableName).exists()) {
      throw new RuntimeConfigurationError(INVALID_EXECUTABLE_FILE_NAME + executableName);
    }
  }
Ejemplo n.º 2
0
 @Override
 public void writeExternal(Element element) throws WriteExternalException {
   super.writeExternal(element);
   String executable = myRunnerParameters != null ? myRunnerParameters.getExecutableName() : null;
   if (executable != null) element.setAttribute(EXECUTABLE_NAME, executable);
 }
Ejemplo n.º 3
0
 @Override
 public void readExternal(Element element) throws InvalidDataException {
   super.readExternal(element);
   myRunnerParameters = createRunnerParameters();
   myRunnerParameters.setExecutableName(element.getAttributeValue(EXECUTABLE_NAME));
 }