Package com.instantiations.installer.internal.core

Examples of com.instantiations.installer.internal.core.InstallLog


   *
   * @param installDir the product installation directory
   * @param result a collection into which Eclipse installation directories are placed.
   */
  private static void findEclipseDirs(File installDir, Collection result) throws ScanFailedException {
    InstallLog log = readLog(installDir);
    if (log == null)
      return;

    // Extract Eclipse installations from the log file

    File eclipseDir;
    for (Iterator iter = log.getEntries().iterator(); iter.hasNext();) {
      InstallLogEntry entry = (InstallLogEntry) iter.next();
      switch (entry.getOperationCode()) {

        case InstallLog.LINK_CREATED_ENTRY :
          int tokenIndex = entry.getArgument().indexOf(InstallLogEntry.LINK_ENTRY_TOKEN);
View Full Code Here


      throw new ScanFailedException("Failed to open log file: " + logFile.getPath(), e);
    }

    // Read the log file

    InstallLog log = new InstallLog();
    try {
      log.read(reader);
    }
    catch (IOException e) {
      throw new ScanFailedException("IOException reading log file: " + logFile.getPath(), e);
    }
    finally {
View Full Code Here

    // If a log was found, but no "eclipse" or "E-#.#" subdirectories
    // then check to see if this is a umbrella install such as WindowTesterPro
    // by checking if any of its subproducts are linked

    InstallLog log = readLog(installDir);
    if (log == null)
      return false;
    for (Iterator iter = log.getEntries().iterator(); iter.hasNext();) {
      InstallLogEntry entry = (InstallLogEntry) iter.next();
      switch (entry.getOperationCode()) {
        case InstallLog.LINK_CREATED_ENTRY :
          int tokenIndex = entry.getArgument().indexOf(InstallLogEntry.LINK_ENTRY_TOKEN);
          if (tokenIndex == -1)
View Full Code Here

TOP

Related Classes of com.instantiations.installer.internal.core.InstallLog

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.