Examples of IBuildEnvironmentVariable


Examples of org.eclipse.cdt.managedbuilder.envvar.IBuildEnvironmentVariable

      String pathStr = binPath;
      //if OS is Windows (Windows specific settings)
      if (System.getProperty("os.name").toLowerCase().indexOf("win") >= 0) { //$NON-NLS-1$ //$NON-NLS-2$
        try {
          //try to find mingw or cygwin path from PATH environment variable
          IBuildEnvironmentVariable envPath = llvmEnvironmentVariables
              .get(ENV_VAR_NAME_PATH);
          IBuildEnvironmentVariable mingwPath=null, cygwinPath=null;
          //if path is empty
          if (envPath == null) {
            //try to find mingw path from MingwEnvironmentVariableSupplier
            IConfigurationEnvironmentVariableSupplier mingwEnvironmentVariables =
              new MingwEnvironmentVariableSupplier();
            mingwPath = mingwEnvironmentVariables.getVariable(
                ENV_VAR_NAME_PATH, null, null);
            //try to find cygwin path from GnuCygwinConfigurationEnvironmentSupplier
            IConfigurationEnvironmentVariableSupplier cygwinEnvironmentVariables =
              new GnuCygwinConfigurationEnvironmentSupplier();
            cygwinPath = cygwinEnvironmentVariables.getVariable(
                ENV_VAR_NAME_PATH, null, null);

          }
          //if mingw found
          if (mingwPath != null) {
            //form full path
            pathStr = pathStr + System.getProperty("path.separator") + mingwPath.getValue(); //$NON-NLS-1$
          }
          //if cygwin found
          if (cygwinPath != null) {
            //form full path
            pathStr = pathStr + System.getProperty("path.separator") + cygwinPath.getValue(); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.cdt.managedbuilder.envvar.IBuildEnvironmentVariable

  //temporary hack until scanner discovery works
  public static void addMissingCppIncludesForMingw() {
    //try to find mingw path from MingwEnvironmentVariableSupplier
    IConfigurationEnvironmentVariableSupplier mingwEnvironmentVariables =
      new MingwEnvironmentVariableSupplier();
    IBuildEnvironmentVariable mingwPath = mingwEnvironmentVariables.getVariable(
        "PATH", null, null); //$NON-NLS-1$
    //may contain multiple paths therefore must be separated
    String[] mingwPaths = mingwPath.getValue().split(Separators.getPathSeparator());
    //bin folder is appended so it must be removed
    for(int i=0; i<mingwPaths.length; i++) {
      if(mingwPaths[i].contains("bin")) { //$NON-NLS-1$
        mingwPaths[i] = mingwPaths[i].replace("bin", ""); //$NON-NLS-1$ //$NON-NLS-2$
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.