private static AllProfiles loadProfiles(File file) { return BasicProfileConfigLoader.INSTANCE.loadProfiles(file); }
private BasicProfile loadProfile(File configFile) { final AllProfiles allProfiles = profileConfigLoader.loadProfiles(configFile); return allProfiles.getProfile(profileName); } }
private BasicProfile loadProfile(File configFile) { final AllProfiles allProfiles = profileConfigLoader.loadProfiles(configFile); return allProfiles.getProfile(profileName); }
public AllProfiles loadProfiles(File file) { if (file == null) { throw new IllegalArgumentException( "Unable to load AWS profiles: specified file is null."); } if (!file.exists() || !file.isFile()) { throw new IllegalArgumentException( "AWS credential profiles file not found in the given path: " + file.getAbsolutePath()); } FileInputStream fis = null; try { fis = new FileInputStream(file); return loadProfiles(fis); } catch (IOException ioe) { throw new SdkClientException( "Unable to load AWS credential profiles file at: " + file.getAbsolutePath(), ioe); } finally { if (fis != null) { try { fis.close(); } catch (IOException ioe) { } } } }
private static AllProfiles loadProfiles(File file) { return BasicProfileConfigLoader.INSTANCE.loadProfiles(file); }
private BasicProfile loadProfile(File configFile) { final AllProfiles allProfiles = profileConfigLoader.loadProfiles(configFile); return allProfiles.getProfile(profileName); } }
private BasicProfile loadProfile(File configFile) { final AllProfiles allProfiles = profileConfigLoader.loadProfiles(configFile); return allProfiles.getProfile(profileName); }
public AllProfiles loadProfiles(File file) { if (file == null) { throw new IllegalArgumentException( "Unable to load AWS profiles: specified file is null."); } if (!file.exists() || !file.isFile()) { throw new IllegalArgumentException( "AWS credential profiles file not found in the given path: " + file.getAbsolutePath()); } FileInputStream fis = null; try { fis = new FileInputStream(file); return loadProfiles(fis); } catch (IOException ioe) { throw new SdkClientException( "Unable to load AWS credential profiles file at: " + file.getAbsolutePath(), ioe); } finally { if (fis != null) { try { fis.close(); } catch (IOException ioe) { } } } }
private static AllProfiles loadProfiles(File file) { return BasicProfileConfigLoader.INSTANCE.loadProfiles(file); }
private BasicProfile loadProfile(File configFile) { final AllProfiles allProfiles = profileConfigLoader.loadProfiles(configFile); return allProfiles.getProfile(profileName); }
public AllProfiles loadProfiles(File file) { if (file == null) { throw new IllegalArgumentException( "Unable to load AWS profiles: specified file is null."); } if (!file.exists() || !file.isFile()) { throw new IllegalArgumentException( "AWS credential profiles file not found in the given path: " + file.getAbsolutePath()); } FileInputStream fis = null; try { fis = new FileInputStream(file); return loadProfiles(fis); } catch (IOException ioe) { throw new SdkClientException( "Unable to load AWS credential profiles file at: " + file.getAbsolutePath(), ioe); } finally { if (fis != null) { try { fis.close(); } catch (IOException ioe) { } } } }