Package com.instantiations.installer.internal.core

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


    // 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);
          if (tokenIndex == -1)
            break;
          File linkFile = new File(entry.getArgument().substring(0, tokenIndex));
          File linksDir = linkFile.getParentFile();
          if (linksDir == null)
            break;
          eclipseDir = linksDir.getParentFile();
          if (eclipseDir == null || !eclipseDir.isDirectory())
            break;
          result.add(eclipseDir.getAbsoluteFile());
          break;

        case InstallLog.ECLIPSE_CONFIG_CLEANED_ENTRY :
          eclipseDir = new File(entry.getArgument());
          if (!eclipseDir.isDirectory())
            break;
          result.add(eclipseDir.getAbsoluteFile());
          break;
      }
View Full Code Here


    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)
            break;
          File subInstallDir = new File(entry.getArgument().substring(tokenIndex + 1));
          if (subInstallDir.getName().startsWith("E-"))
            subInstallDir = subInstallDir.getParentFile();
          String subInstallName = subInstallDir.getName();
          if (subInstallName.startsWith("Shared_v") || subInstallName.startsWith("CodeProCore_v"))
            break;
View Full Code Here

TOP

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

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.