Skip to content

Commit

Permalink
[mekomsolutions#284] - Support "dispositions" domain
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoodrich committed Oct 25, 2024
1 parent d899b50 commit f0b46c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
package org.openmrs.module.initializer.api;

import java.io.InputStream;
import java.nio.file.Path;
import java.util.List;

import org.openmrs.Concept;
Expand All @@ -20,6 +21,11 @@

public interface InitializerService extends OpenmrsService {

/**
* @return A Path object representing the base path of the application data directory
*/
Path getBasePath();

/**
* @return The path to the configuration folder (with NO trailing forward slash), eg.
* "/opt/openmrs/configuration"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected void load(File file) throws Exception {
"Multiple disposition files found in the disposition configuration directory.");
}
fileFound = true;
dispositionService.setDispositionConfig("file:" + file.getAbsolutePath());
dispositionService.setDispositionConfig("file:" + iniz.getBasePath().relativize(file.toPath()));
}

@Override
Expand Down

0 comments on commit f0b46c0

Please sign in to comment.