Updating a lingering reference to a variable that was missed when I merged the changes.

This commit is contained in:
Adam Carbone 2016-02-08 10:14:37 -05:00
parent 686d942a90
commit d34986c52b
1 changed files with 2 additions and 2 deletions

View File

@ -174,13 +174,13 @@ public class ExampleDataUploader extends BaseCommand {
File cacheDir = new File(applicationDir, "cache" ); File cacheDir = new File(applicationDir, "cache" );
FileUtils.forceMkdir(cacheDir); 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); Date cacheExpiryDate = DateUtils.addHours(new Date(), -12);
if(!inputFile.exists() | (cacheFile && FileUtils.isFileOlder(inputFile, cacheExpiryDate))){ 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); HttpGet get = new HttpGet(specUrl);
CloseableHttpClient client = HttpClientBuilder.create().build(); CloseableHttpClient client = HttpClientBuilder.create().build();