The fileset tag can be used in 2 ways. The first it does not execute anything. Rather, it is used by other tags to specify a group of files that is used by some other tag.
The second way is to iterate on a set of files. The contained isl tags are executed with the "file" property being set to each file name. In the example below the script iterates on all of the .nc files. The file name is printed out and then the bundle is loaded. The setfiles tag is used to set the file name within the bundle.<fileset dir="the directory to look at" pattern="file pattern to match"/> Or: <fileset file="somefile"/>
<isl offscreen="false"> <fileset pattern=".*\.nc"> <echo message="File: ${file}"/> <bundle file="${islpath}/test.xidv"> <!-- This sets the data file in the bundle to the ${file} --> <setfiles datasource=".*" file="${file}"/> </bundle> <pause seconds="20"/> </fileset> </isl>multiplefiles.isl
The mkdir tag creates a directory specified by the file attribute:
<mkdir file="somedirectory"/>
There is no error if the directory already exists.
The rename tag allows you to rename a file:
<rename from"somefile" to="newfile"/>
<delete>
<fileset dir="/some/directory" pattern="*.png"/>
<fileset name="somefile"/>
</delete>
<move dir="destination directory"> <fileset dir="/some/directory" pattern="*.png"/> <fileset name="somefile"/> </move>
<copy dir="destination directory"> <fileset dir="/some/directory" pattern="*.png"/> <fileset name="somefile"/> </copy>