Java Code Examples for org.ini4j.Ini#getAll()
The following examples show how to use
org.ini4j.Ini#getAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SdkIniFileReader.java From xds-ide with Eclipse Public License 1.0 | 5 votes |
private void processEnvironmentSection(Sdk sdk, Ini ini) { List<Section> environments = ini.getAll(ENVIRONMENT_SECTION_NAME); if (environments != null) { for (Section envSection : environments) { Set<Entry<String, String>> entrySet = envSection.entrySet(); for (Entry<String, String> entry : entrySet) { sdk.putEnvironmentVariable(entry.getKey(), entry.getValue()); } } } }
Example 2
Source File: SdkIniFileReader.java From xds-ide with Eclipse Public License 1.0 | 5 votes |
private void processToolSections(Sdk sdk, Ini ini) { List<Section> tools = ini.getAll(TOOL_SECTION_NAME); if (tools != null) { for (Section toolSection : tools) { SdkTool tool = parseTool(sdk, toolSection); if (tool.isValid()) { sdk.addTool(tool); } else { LogHelper.logError(tool.getErrorMessage()); } } } }