D.2 Exploding stylereport.srl into Individual Components
By default, reusable report components are stored in a zip file called stylereport.srl. You can explode this bundle file into its individual components through an Ant task or through the command line.
To explode the stylereport.srl 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.ExtractLibraryTask path_to/stylereport.srl
This explodes the specified stylereport.srl file into a directory called stylereport.srl.d in the same location. Whenever this stylereport.srl.d directory is in existence, Style Studio and the Style Intelligence server read and write assets from the directory rather than from the stylereport.srl zip 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:
<extractlibrary src="path_to/stylereport.srl"/>
To recreate the stylereport.srl file from stylereport.srl.d directory, substitute the following command line or Ant code into the corresponding instructions above.
// Command Line
java inetsoft.sree.adm.ant.PackageLibraryTask path_to/stylereport.srl.d
// Ant script
<packagelibrary src="path_to/stylereport.srl.d"/>
| << D.1 Exploding asset.dat into Individual Components | © 1996-2013 InetSoft Technology Corporation (v11.4) | Integration >> |