</exec>
</target>
- <!-- Preserve the legacy name for this target -->
+ <!--
+ Preserve the legacy name for this target, while noting that
+ legacy name is no longer descriptive of its purpose.
+ -->
<target name="deploy_jasper_samples" depends="deploy_report_files" />
- <target name="deploy_report_files"
- description="Copy report files to ${jee.server.cspace}/cspace/reports">
+ <target name="deploy_report_files"
+ description="Deploy report files">
<copy todir="${jee.server.cspace}/cspace/reports" overwrite="true">
<fileset dir="${basedir}/jasper-cs-report/src/main/resources"
includes="*.jrxml"/>
</copy>
</target>
+
+ <target name="undeploy_report_files"
+ depends="undeploy_source_report_files,undeploy_compiled_report_files"
+ description="Undeploy report files">
+ </target>
+
+ <target name="undeploy_source_report_files"
+ description="Undeploy source (.jrxml) report files">
+ <delete failonerror="false">
+ <fileset dir="${jee.server.cspace}/cspace/reports" includes="*.jrxml"/>
+ </delete>
+ </target>
+
+ <target name="undeploy_compiled_report_files"
+ description="Undeploy compiled (.jasper) report files">
+ <delete failonerror="false">
+ <fileset dir="${jee.server.cspace}/cspace/reports" includes="*.jasper"/>
+ </delete>
+ </target>
- <target name="deploy" depends="install"
- description="deploy report in ${jee.server.nuxeo}">
- <!-- This target is obsolete. The Nuxeo artifacts are now created and deployed using the "csmake" tool
- <ant antfile="nuxeo-platform-cs-report/build.xml" target="deploy" inheritall="false"/>
- -->
- <antcall target="deploy_report_files" />
+ <target name="deploy" depends="install,deploy_source_report_files"
+ description="Deploy report-related artifacts">
+ <!--
+ The following ant call is obsolete. The Nuxeo artifacts are now created
+ and deployed using the "csmake" tool.
+ <ant antfile="nuxeo-platform-cs-report/build.xml" target="deploy" inheritall="false"/>
+ -->
</target>
- <target name="undeploy"
- description="undeploy report from ${jee.server.nuxeo}">
- <!-- This target is obsolete. The Nuxeo artifacts are now created and deployed using the "csmake" tool
- leaving this only for backwards compatibility reasons. -->
+ <target name="undeploy" depends="undeploy_compiled_report_files"
+ description="Undeploy report-related artifacts">
<ant antfile="nuxeo-platform-cs-report/build.xml" target="undeploy" inheritall="false"/>
</target>
<target name="dist"
- description="generate distribution for report" depends="package">
+ description="Generate distribution for report" depends="package">
<ant antfile="nuxeo-platform-cs-report/build.xml" target="dist" inheritall="false"/>
</target>
<target name="deploy" depends="install"
description="deploy report doctype in ${jee.server.nuxeo}">
- <!-- This target is obsolete. The Nuxeo artifacts are now created and deployed using the "csmake" tool
- leaving this only for backwards compatibility reasons. -->
+ <!-- This target is obsolete. The Nuxeo artifacts are now created
+ and deployed using the "csmake" tool, leaving this legacy call
+ only for backwards compatibility reasons. -->
<copy file="${basedir}/target/${nuxeo.report.legacy.jar}"
todir="${jee.deploy.nuxeo.plugins}"/>
</target>
<target name="undeploy"
- description="undeploy report doctype from ${jee.server.nuxeo}">
+ description="undeploy report doctypes from ${jee.server.nuxeo}">
<delete>
<!-- Undeploy doctype and schema artifacts -->
<fileset dir="${jee.deploy.nuxeo.plugins}">