For example,
Global Scope – /global/worksheet/Sales/YTD Sales
User Scope – /user/{user name}/viewsheet/Lead Analysis
Asset Wild Card – /global/viewsheet/Mgmt Dashboard/Sales/*
Folder Wild Card – /global/report/Mgmt Dashboard/**/*
For example, if you want to include all viewsheets from the 'Sales' folder except the 'YTD Sales' viewsheet.
<include name="/global/viewsheet/Sales/*"/>
<exclude name="/global/viewsheet/Sales/YTD Sales"/>
Sample 'build.xml' file for Remote Import/Export:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="AdminTask" basedir="." default="all">
<property name="testDir" location=""/>
<target name="ExportAssetRemote" description="Export From">
<taskdef name="expassets" classname="inetsoft.sree.adm.ant.ExportAssetsTask"/>
<exportassets host="192.168.5.89" port="1098" username="{RMI Server user}" password="{password}" file="\exports\xyz1.jar">
<include name="/global/viewsheet/Dashboards/*"/>
<exclude name="/global/viewsheet/Dashboards/Projection"/>
</exportassets>
</target>
<target name="ImportAssetRemote" description="Import To">
<taskdef name="importassets" classname="inetsoft.sree.adm.ant.ImportAssetsTask"/>
<importassets host="192.168.5.89" port="1098" username="{RMI Server user}" password="{password}" file="\imports\xyz2.jar" replace="false">
</importassets>
</target>
</project>
Sample 'build.xml' for file for local Import/Export:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="AdminTask" basedir="." default="all">
<property name="testDir" location=""/>
<property name="sreeHome" location="C:\StyleIntelligence\server\webapps\sree\WEB-INF\classes"/>
<target name="ExportAssetLocal" description="Export From">
<taskdef name="exportassets" classname="inetsoft.sree.adm.ant.ExportAssetsTask"/>
<exportassets username="{EM User}" password="{password}" sreehome="" file="\exports\abc1.jar">
<include name="/global/viewsheet/**/*"/>
</exportassets>
</target>
<target name="ImportAssetLocal" description="Import To">
<taskdef name="importassets" classname="inetsoft.sree.adm.ant.ImportAssetsTask"/>
<importassets username="{EM User}" password="{password}" sreehome="" file="\imports\abc2.jar" replace="false">
</importassets>
</target>
</project>
To execute the Ant task, follow the steps below:
1. Make sure the product jar files are on the classpath.
2. Change to the directory containing the build.xml file.
3. Enter the following command:
ant {target name}
e.g., :\>ant ExportAssetLocal