Skip to content

Commit

Permalink
fixed support for URLS-file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Jun 4, 2024
1 parent cf9dcd5 commit be352f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
16 changes: 10 additions & 6 deletions media-backend-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,16 @@
<groupId>nl.vpro.shared</groupId>
<artifactId>vpro-shared-rs</artifactId>
</dependency>
<!-- optional? re3/re4?
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client-api</artifactId>
</dependency>
-->
<dependency>
<groupId>nl.vpro.poms.api-clients</groupId>
<artifactId>client-core</artifactId>
</dependency>
<!-- optional? re3/re4?
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client-api</artifactId>
</dependency>
-->

</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.google.errorprone.annotations.CanIgnoreReturnValue;

import nl.vpro.api.client.resteasy.AbstractApiClient;
import nl.vpro.api.client.utils.Config;
import nl.vpro.api.rs.subtitles.*;
import nl.vpro.domain.media.*;
import nl.vpro.domain.media.search.*;
Expand All @@ -44,6 +45,7 @@
import nl.vpro.rs.media.MediaBackendRestService;
import nl.vpro.util.*;

import static nl.vpro.api.client.utils.Config.URLS_FILE;
import static nl.vpro.domain.media.EntityType.AllMedia.valueOf;
import static nl.vpro.domain.media.search.Pager.Direction.ASC;

Expand Down Expand Up @@ -345,7 +347,9 @@ public static Builder configured(Env env, String... configFiles) {
*/
public static Builder configured(Env env) {
Builder builder = builder();
ConfigUtils.configuredInHome(env, builder, "mediarestclient.properties", "creds.properties");
Config config = new Config(URLS_FILE, "mediarestclient.properties");
config.setEnv(env);
ReflectionUtils.configured(builder, config.getProperties(Config.Prefix.media_api_backend));
return builder;
}

Expand Down

0 comments on commit be352f4

Please sign in to comment.