Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen J. Molaro2019-09-17 15:29:46 -0400
committerDavid Miller2019-09-17 17:45:39 -0400
commit9d1996526d1e877be1fd6a2d6f4eb967fa4de1a6 (patch)
tree434223ca75840c2853d5d3c2fba3e14bdea410b5
parentb0cc6f4a31dae823c8703cda88f13be1b919edf0 (diff)
downloadorg.eclipse.osee-dev.tar.gz
org.eclipse.osee-dev.tar.xz
org.eclipse.osee-dev.zip
bug[TW14983]: Allow Dispo to import files with .P[ATH] extensiondev
Change-Id: I813c80b6649541faa70c200965c810bd882ca215 Signed-off-by: Stephen J. Molaro <stephen.j.molaro@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/importer/coverage/LisFileParser.java29
1 files changed, 6 insertions, 23 deletions
diff --git a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/importer/coverage/LisFileParser.java b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/importer/coverage/LisFileParser.java
index 439aee0ec0..f67a7e83cb 100644
--- a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/importer/coverage/LisFileParser.java
+++ b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/importer/coverage/LisFileParser.java
@@ -455,34 +455,17 @@ public class LisFileParser implements DispoImporterApi {
}
private void processResults(VCastResult result, OperationReport report) throws Exception {
- boolean fileExists = false;
- String pathExt = ".PATH";
String resultPath = result.getPath();
String resultPathAbs = vCastDir + File.separator + resultPath;
- String errorLogging = "DAT file ";
- for (int i = 0; i <= pathExt.length(); i++) {
- File resultsFile = new File(resultPathAbs);
- fileExists = resultsFile.exists();
+ File resultsFile = new File(resultPathAbs);
+ if (!resultsFile.exists()) {
+ boolean fileExists = findAndProcessResultFile(resultsFile, resultPath, report);
+
if (!fileExists) {
- fileExists = findAndProcessResultFile(resultsFile, resultPath, report);
- if (fileExists) {
- errorLogging += String.format("{[%s] [%s]} ", resultPathAbs, resultsFile);
- break;
- } else if (i < pathExt.length()) {
- resultPath += pathExt.charAt(i);
- resultPathAbs += pathExt.charAt(i);
- }
- errorLogging += String.format("{[%s] [%s]} ", resultPathAbs, resultsFile);
- } else {
- errorLogging += String.format("{[%s] [%s]} ", resultPathAbs, resultsFile);
- process(report, resultPath, resultsFile);
- break;
+ report.addEntry("SQL", String.format("Could not find DAT file [%s]", resultPathAbs), WARNING);
}
- }
- if (!fileExists) {
- report.addEntry("SQL", String.format("Could not find %s", errorLogging), WARNING);
} else {
- report.addEntry("SQL", String.format("Found %s", errorLogging), DispoSummarySeverity.IGNORE);
+ process(report, resultPath, resultsFile);
}
}

Back to the top