From d34986c52b6e7a4a6b8c9ddae5db70079d03162c Mon Sep 17 00:00:00 2001 From: Adam Carbone Date: Mon, 8 Feb 2016 10:14:37 -0500 Subject: [PATCH] Updating a lingering reference to a variable that was missed when I merged the changes. --- .../src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java index 66d32e04a77..eab48cb8362 100644 --- a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java +++ b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java @@ -174,13 +174,13 @@ public class ExampleDataUploader extends BaseCommand { File cacheDir = new File(applicationDir, "cache" ); FileUtils.forceMkdir(cacheDir); - File inputFile = new File( cacheDir, "examples-json-" + specVersion + ".zip"); + File inputFile = new File( cacheDir, "examples-json-" + ctx.getVersion().getVersion() + ".zip"); Date cacheExpiryDate = DateUtils.addHours(new Date(), -12); if(!inputFile.exists() | (cacheFile && FileUtils.isFileOlder(inputFile, cacheExpiryDate))){ - File exampleFileDownloading = new File( cacheDir, "examples-json-" + specVersion + ".zip.partial"); + File exampleFileDownloading = new File( cacheDir, "examples-json-" + ctx.getVersion().getVersion() + ".zip.partial"); HttpGet get = new HttpGet(specUrl); CloseableHttpClient client = HttpClientBuilder.create().build();