Issue #1990 allow work assignments to work with TestPathManager, if they set the baseline_repo variable to point to the location of the git repo for AWIPS2_baseline
Change-Id: Iad2e6bc92e20d4135837fa1dd3a7521fa1dbb751 Former-commit-id:3aa8e33e77
[formerlya9801dd87f
] [formerly5a4bd2894e
] [formerly3aa8e33e77
[formerlya9801dd87f
] [formerly5a4bd2894e
] [formerly6ae260f4e7
[formerly5a4bd2894e
[formerly 2d26f8f1eac681586684680a84c41d06437dead5]]]] Former-commit-id:6ae260f4e7
Former-commit-id:91ae94f0c3
[formerly34be2d04c9
] [formerly 13718a3671328ceb77dc06ba716871cb6e8d7f6e [formerlybdbc49fe34
]] Former-commit-id: af533a7e2aa842db3199db9b0ffdcd4563b2017f [formerly870ac9d14d
] Former-commit-id:ad5d586e5e
This commit is contained in:
parent
2c625de614
commit
e008f1d684
1 changed files with 15 additions and 3 deletions
|
@ -156,7 +156,8 @@ public class TestPathManager extends PathManager {
|
|||
* @return
|
||||
*/
|
||||
private File createTestIsolatedVersionOfLocalizationFile(
|
||||
LocalizationContext context, String fileName, File baselinedVersion) {
|
||||
LocalizationContext context, String fileName,
|
||||
File baselinedVersion) {
|
||||
File savedFileBaseDir = new File(savedLocalizationFileDir,
|
||||
context.toPath());
|
||||
File savedFile = new File(savedFileBaseDir, fileName);
|
||||
|
@ -205,8 +206,19 @@ public class TestPathManager extends PathManager {
|
|||
}
|
||||
|
||||
if (buildEdexDir == null) {
|
||||
throw new RuntimeException(
|
||||
"Unable to find the build.edex directory!");
|
||||
// work assignment workaround to for tests since we don't
|
||||
// know where the baseline repo is and we can't necessarily
|
||||
// find files if we don't know the baseline repo's location
|
||||
// THIS MEANS THAT FOR WORK ASSIGNMENTS WE MUST HAVE
|
||||
// BASELINE_DIR SET
|
||||
buildEdexDir = new File(System.getenv("baseline_dir")
|
||||
.replace("\n", ""), "edexOsgi" + File.separator
|
||||
+ "build.edex");
|
||||
if (buildEdexDir.exists() == false
|
||||
|| buildEdexDir.isDirectory() == false) {
|
||||
throw new RuntimeException(
|
||||
"Unable to find the build.edex directory!");
|
||||
}
|
||||
}
|
||||
|
||||
utilityDirs.add(new File(buildEdexDir, "esb/data/utility"));
|
||||
|
|
Loading…
Add table
Reference in a new issue