Skip to content

Commit

Permalink
Correctly load the project properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
briacp committed Jun 17, 2019
1 parent a54f9b7 commit 8309798
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public static void main(String[] args) throws Exception {
}

cliMode = true;
ProjectProperties props = new ProjectProperties(projectDir);

// Correctly load the project properties
ProjectProperties props = org.omegat.util.ProjectFileStorage.loadProjectProperties(projectDir);
createOmt(omtFile, props);
}

Expand Down Expand Up @@ -433,7 +435,7 @@ public static File extractFromOmt(File omtFile) throws Exception {
public static void createOmt(final File omtZip, final ProjectProperties props) throws Exception {
Path path = Paths.get(props.getProjectRootDir().getAbsolutePath());
if (!Files.isDirectory(path)) {
throw new IllegalArgumentException("Path must be a directory.");
throw new IllegalArgumentException("Path \"" + path + "\" must be a directory.");
}

List<String> listExcludes = Arrays.asList(pluginProps.getProperty(PROPERTY_EXCLUDE, DEFAULT_EXCLUDE).split(";"));
Expand Down

0 comments on commit 8309798

Please sign in to comment.