diff --git a/java/src/main/java/kanzi/app/BlockCompressor.java b/java/src/main/java/kanzi/app/BlockCompressor.java index 9cca5216..a1254701 100644 --- a/java/src/main/java/kanzi/app/BlockCompressor.java +++ b/java/src/main/java/kanzi/app/BlockCompressor.java @@ -259,7 +259,6 @@ public Integer call() ctx.put("pool", this.pool); ctx.put("codec", this.codec); ctx.put("transform", this.transform); - ctx.put("extra", "TPAQX".equals(this.codec)); // Run the task(s) if (nbFiles == 1) @@ -281,6 +280,7 @@ else if ((inputIsDir == true) && (specialOutput == false)) ctx.put("inputName", iName); ctx.put("outputName", oName); ctx.put("jobs", this.jobs); + ctx.put("extra", "TPAQX".equals(this.codec)); FileCompressTask task = new FileCompressTask(ctx, this.listeners); FileCompressResult fcr = task.call(); res = fcr.code;