メモ: ToolingConnection取得
SFDC Tooling API の利用前提となる ToolingConnection を取得する例。
final Properties props = new Properties(); try (Reader reader = new FileReader("build.properties")) { props.load(reader); } final ConnectorConfig connConfig = new ConnectorConfig(); connConfig.setUsername(props.getProperty("sf.username")); // password must contain both PASS + TOKEN connConfig.setPassword(props.getProperty("sf.password")); // sf.serverurl may be https://login.salesforce.com/services/Soap/T/37.0 connConfig.setAuthEndpoint(props.getProperty("sf.serverurl")); final ToolingConnection toolingConnection = new ToolingConnection(connConfig);