public String getCompileClassPath() {
    String compileClassPath =
        StringHelper.removeQuotesOS("\".")
            + File.pathSeparator
            + Oncotcap.getInstallDir()
            + "bin"
            + File.pathSeparator
            + Oncotcap.getProgramDir()
            + File.pathSeparator
            + Oncotcap.getInstallDir()
            + "lib"
            + File.separator
            + "tools.jar"
            + File.pathSeparator
            + Oncotcap.getInstallDir()
            + "lib"
            + File.separator
            + "protege.jar"
            + File.pathSeparator
            + FileHelper.sansTrailingSeparator(Oncotcap.getTempPath());
    // packageBaseName;

    String xtraPath = Oncotcap.getExtraCompilerClassPath().trim();
    if (xtraPath != null && !xtraPath.equals("")) {
      if (!xtraPath.startsWith(File.pathSeparator))
        compileClassPath = compileClassPath + File.pathSeparator;

      compileClassPath = compileClassPath + xtraPath;
    }

    String strPluginDir = Oncotcap.getInstallDir() + "plugins";
    if (FileHelper.fileExists(strPluginDir)) {
      strPluginDir = strPluginDir + File.separator;

      File pluginDir = new File(strPluginDir);
      {
        if (pluginDir.isDirectory()) {
          File[] jars = pluginDir.listFiles();
          if (jars != null) {
            for (int n = 0; n < jars.length; n++) {
              if (jars[n].getName().endsWith(".jar"))
                compileClassPath =
                    compileClassPath + File.pathSeparator + strPluginDir + jars[n].getName();
            }
          }
        }
      }
    }
    compileClassPath = compileClassPath + StringHelper.removeQuotesOS("\"");
    return (compileClassPath);
  }
Example #2
0
  /**
   * Stores value of previously defined XML node
   *
   * @param text - value of node
   */
  public void setValue(String text) {
    readyForNewLine = false;
    tagIsEmpty = false;
    finishTag();

    if (lastTagHadAttributes) {
      writer.write(
          LF
              + WikiTableDriver.DELIM
              + WikiTableDriver.QUOTES
              + WikiTableDriver.SET_VALUE
              + WikiTableDriver.QUOTES
              + WikiTableDriver.DELIM);
      quickNodeValue = false;
    } else {
      String startTag =
          StringHelper.replace(
              writer.substring(startPointer),
              WikiTableDriver.START_NODE,
              WikiTableDriver.SET_NODE_VALUE);

      if (this.useLineSeparateBetweenTags) {
        writer.write(LF + WikiTableDriver.DELIM);
      }

      writer.setPointer(startPointer);
      writer.write(startTag);
      quickNodeValue = true;
    }

    writeText(writer, text);
    writer.write(WikiTableDriver.DELIM);
  }