Skip to content

Commit

Permalink
build issue fixing, #195
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed May 11, 2024
1 parent 9a5fb23 commit 08093b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/metanorma/MetanormaCollectionManifest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,11 @@ public void generate(String outputFolder, String namePublicationIndex, DocumentS
if (!namePublicationIndex.isEmpty()) {
namePublicationIndex = namePublicationIndex + ".";
}

System.out.println("repositoryRootFolder=" + repositoryRootFolder);

Files.createDirectories(Paths.get(repositoryRootFolder));
Path pathMetanormaCollectionYml = Paths.get(repositoryRootFolder, namePublicationIndex + "collection" + documentStatus.toString() + ".yml");
System.out.println("pathMetanormaCollectionYml=" + pathMetanormaCollectionYml);
PrintWriter writer = new PrintWriter(pathMetanormaCollectionYml.toFile());
System.out.println("debug1");
yaml.dump(yamlObj, writer);
System.out.println("debug2");
System.out.println("[INFO] Saved " + pathMetanormaCollectionYml.toString() + ".");
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/metanorma/stepmod2mn.java
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ private static void runoptions(String[] args) throws ParseException {

// output folder for collection.yml
String collectionOutputPath = argOutputPath;
if (isDocumentsGenerationMode) {
if (isStandaloneXML || isDocumentsGenerationMode) {
// get parent folder
collectionOutputPath = new File(argOutputPath).getParent().toString();
}
Expand Down

0 comments on commit 08093b5

Please sign in to comment.