forEachLoop- compress file in file list
Posted: Wed Jun 01, 2016 1:13 pm
Hey guys, is it possible to use a forEachLoop with a file list to compress each file on its own? Below is my attempt which fails. When i run the project in debug i can see the variable {file} has a value of "Remote File" and not full instantiated file with path
example:
{sr01_list} =
./abc.txt
./123.txt
desired result
./archive/abc.zip
./archive/123.txt
Code: Select all
<forEachLoop itemsVariable="${src01_list}" currentItemVariable="file">
<zip label="compress" inputFilesVariable="${file}" outputFile="./archive/${file:nameWithoutExtension}.zip" version="1.0" />
</forEachLoop>
example:
{sr01_list} =
./abc.txt
./123.txt
desired result
./archive/abc.zip
./archive/123.txt