Skip to content

Commit

Permalink
set the import-realm flag always (#138)
Browse files Browse the repository at this point in the history
so it becomes possible also to add realm-files from outside of the classpath by adding them manually as a file system bind

resolves #131
  • Loading branch information
dasniko committed Apr 25, 2024
1 parent 5e8b7e7 commit 1d5e9bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ protected void configure() {
});
}

commandParts.add("--import-realm");
if (!importFiles.isEmpty()) {
for (String importFile : importFiles) {
// TODO: a strategy for files with the same name but in the different dirs
String importFileInContainer = DEFAULT_REALM_IMPORT_FILES_LOCATION + FilenameUtils.getName(importFile);
withCopyFileToContainer(MountableFile.forClasspathResource(importFile), importFileInContainer);
}
commandParts.add("--import-realm");
}

/* caching is disabled per default in dev-mode, thus we overwrite that config, unless #withDisabledCaching() has been called */
Expand Down

0 comments on commit 1d5e9bb

Please sign in to comment.