|
19 | 19 |
|
20 | 20 | import static com.dmtavt.fragpipe.messages.MessagePrintToConsole.toConsole;
|
21 | 21 | import static com.dmtavt.fragpipe.tabs.TabDatabase.databaseSizeLimit;
|
| 22 | +import static com.dmtavt.fragpipe.tabs.TabWorkflow.manifestExt; |
| 23 | +import static com.dmtavt.fragpipe.tabs.TabWorkflow.workflowExt; |
22 | 24 | import static com.github.chhh.utils.FileDelete.deleteFileOrFolder;
|
23 | 25 |
|
24 | 26 | import com.dmtavt.fragpipe.api.Bus;
|
@@ -508,7 +510,7 @@ public static int run(MessageRun m) {
|
508 | 510 | saveRuntimeConfig(wd);
|
509 | 511 |
|
510 | 512 | // save manifest file in both GUI and headless mode
|
511 |
| - Path path = wd.resolve("fragpipe-files.fp-manifest"); |
| 513 | + Path path = wd.resolve("fragpipe-files" + manifestExt); |
512 | 514 | Bus.post(new MessageManifestSave(path, true));
|
513 | 515 |
|
514 | 516 | if (tabRun.isWriteSubMzml()) { // write sub workflow and manifest files for the second-pass
|
@@ -557,8 +559,8 @@ public static int run(MessageRun m) {
|
557 | 559 | newPrecursorTrueTolerance = Float.parseFloat(matcher.group(1));
|
558 | 560 | }
|
559 | 561 |
|
560 |
| - Path workflowFilePath = wd.resolve("fragpipe.workflow"); |
561 |
| - Path workflowFileSecondPassPath = wd.resolve("fragpipe-second-pass.workflow"); |
| 562 | + Path workflowFilePath = wd.resolve("fragpipe" + workflowExt); |
| 563 | + Path workflowFileSecondPassPath = wd.resolve("fragpipe-second-pass" + workflowExt); |
562 | 564 | if (Files.exists(workflowFilePath) && Files.isRegularFile(workflowFilePath) && Files.isReadable(workflowFilePath)) {
|
563 | 565 | BufferedReader reader = Files.newBufferedReader(workflowFilePath);
|
564 | 566 | BufferedWriter writer = Files.newBufferedWriter(workflowFileSecondPassPath);
|
@@ -600,8 +602,8 @@ public static int run(MessageRun m) {
|
600 | 602 | reader.close();
|
601 | 603 | }
|
602 | 604 |
|
603 |
| - Path manifestFilePath = wd.resolve("fragpipe-files.fp-manifest"); |
604 |
| - Path manifestFileSecondPassPath = wd.resolve("fragpipe-files-second-pass.fp-manifest"); |
| 605 | + Path manifestFilePath = wd.resolve("fragpipe-files" + manifestExt); |
| 606 | + Path manifestFileSecondPassPath = wd.resolve("fragpipe-files-second-pass" + manifestExt); |
605 | 607 | if (Files.exists(manifestFilePath) && Files.isRegularFile(manifestFilePath) && Files.isReadable(manifestFilePath)) {
|
606 | 608 | BufferedReader reader = Files.newBufferedReader(manifestFilePath);
|
607 | 609 | BufferedWriter writer = Files.newBufferedWriter(manifestFileSecondPassPath);
|
@@ -743,7 +745,7 @@ private static void printReference(TextConsole console) {
|
743 | 745 |
|
744 | 746 |
|
745 | 747 | public static void saveRuntimeConfig(Path wd) {
|
746 |
| - Path path = wd.resolve("fragpipe.workflow"); |
| 748 | + Path path = wd.resolve("fragpipe" + workflowExt); |
747 | 749 | Bus.post(new MessageSaveUiState(path));
|
748 | 750 | }
|
749 | 751 |
|
|
0 commit comments