D.1 Exploding asset.dat into Individual Components
By default, Viewsheets and Worksheets are stored in a binary file called asset.dat. You can explode this bundle file into its individual components through an Ant task or through the command line.
To explode the asset.dat file into individual components from the command line, follow the steps below:
1. Make sure that the Style Intelligence JAR files (e.g., bisuite.jar and etools.jar) are on your classpath. For example:
set classpath=%CLASSPATH%;path_to\bisuite.jar;path_to\etools.jar
2. Make sure that the Ant JAR file is on your classpath. (This is required even if you are using the command line.)
set classpath=%CLASSPATH%;path_to\ant.jar
3. Enter the following command to extract the files:
java inetsoft.sree.adm.ant.ExtractStorageTask path_to/asset.dat
This explodes the specified asset.dat file into a directory called asset.dat.d in the same location. Whenever this asset.dat.d directory is in existence, Style Studio and the Style Intelligence server read and write assets from the directory rather than from the binary asset.dat file.
To accomplish the same result using an Ant task, include the following code in the Ant script:
1. Specify the path to Style Intelligence JAR files:
<typedef resource="inetsoft/sree/adm/ant/antlib.xml">
<classpath>
<include name="path_to/bisuite.jar"/>
<include name="path_to/etools.jar"/>
</classpath>
</typedef>
2. Extract the files:
<extractstorage src="path_to/asset.dat"/>
To recreate the asset.dat file from asset.dat.d directory, substitute the following command line or Ant code into the corresponding instructions above.
// Command Line
java inetsoft.sree.adm.ant.PackageStorageTask path_to/asset.dat.d
// Ant script
<packagestorage src="path_to/asset.dat.d"/>
| << Appendix D: Exploding Configuration Files | © 1996-2013 InetSoft Technology Corporation (v11.4) | D.2 Exploding stylereport.srl into Individual Components >> |