Skip to content

Commit

Permalink
MAINT: remove override example file
Browse files Browse the repository at this point in the history
Signed-off-by: George Chen <qchea@amazon.com>
  • Loading branch information
chenqi0805 committed Nov 12, 2024
1 parent dce382e commit 3ca7dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ public void run() {
final PluginProvider pluginProvider = new ClasspathPluginProvider();
final PrimaryFieldsOverride primaryFieldsOverride;
try {
final URL primaryFieldsOverrideURL = primaryFieldsOverrideFilePath == null ?
getClass().getClassLoader().getResource("example-primary-fields-override.yaml").toURI().toURL() :
new File(primaryFieldsOverrideFilePath).toURI().toURL();
primaryFieldsOverride = OBJECT_MAPPER.readValue(
primaryFieldsOverrideURL, PrimaryFieldsOverride.class);
} catch (IOException | URISyntaxException e) {
primaryFieldsOverride = primaryFieldsOverrideFilePath == null ? new PrimaryFieldsOverride() :
OBJECT_MAPPER.readValue(new File(primaryFieldsOverrideFilePath), PrimaryFieldsOverride.class);
} catch (IOException e) {
throw new RuntimeException("primary fields override filepath does not exist. ", e);
}
final PluginConfigsJsonSchemaConverter pluginConfigsJsonSchemaConverter = new PluginConfigsJsonSchemaConverter(
Expand Down

This file was deleted.

0 comments on commit 3ca7dee

Please sign in to comment.