Re: [idvdevelopers] ISL scripting (2)

Hi Jun,

More questions about ISL:

<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>

Above code: <setfiles datasource=".*" file="${file}"/>
Which will add files to datasource or replace old file?
The above ISL should replace whatever data file is referenced in the test.xidv bundle with the
file given by ${file} (though I will double check that).

When I loop my files:

<?xml version="1.0" encoding="ISO-8859-1"?>
<isl offscreen="false" loop="25" debug="true">
     <property name="basedir"
value="/t1/CMAQ4.6_SAPRC99_AE3_aq/2000-01_winter/basecase/MM5/" />
     <property name="file"
value="M01-IB01-J02-E02.24hr.200101${loopindex}" />
<!-- <echo message="File: ${basedir}${file}"/>  -->
     <if expr="${loopindex}>9">
     <bundle file="${islpath}/AQ_PM25.xidv">
        <setfiles datasource=".*" file="${basedir}${file}.nc"/>
     </bundle>
     <image file="${islpath}/images/${file}_PM25.png" >
        <transparent color="none" />
     </image>
     <pause seconds="20"/>
     </if>
</isl>

The datasource seems never changed, even my ${file} changed on screen
printout.

How can we set (change) datasource inside .xidv file?



The above isl should also be replacing the data file in the bundle. I will also check that as well.

-Jeff



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvdevelopers archives: