The atg.service.vfs.SelectiveDeleteVFSService
class provides support for selectively deleting files with specific extensions. The ATG Outreach Production/Staging module includes a preconfigured SelectiveDeleteVFSService
instance at /atg/epub/file/OutreachWebAppFileSystem
, which receives JSP files deployed from the corresponding OutreachWebAppFileSystem
on the ATG Outreach server. (See the JSPFileVFSService for E-mail JSPs section for details.) As shown below, the localDirectory
property is set to the exploded Web application directory to which JSPs should be deployed, and the fileExtensions
property specifies the file types that can be deleted when the VFS is updated by a deployment:
localDirectory=<ATG9dir>\ACO9.3\ACO\communication\common\j2ee-
apps\Outreach.ear
fileExtensions=jsp,jspf,JSP,JSPF,gif,GIF,jpg,JPG,jpeg,JPEG,css,CSS
If you are running ATG Outreach on a third-party application server, you must also add the following line:
filePaths=/Outreach.war
This setting indicates that only the files in the Web application you are deploying (the JSPs in Outreach.war
) should be deleted whenever you perform a full deployment. If you do not set this value, files in all Web applications in the path specified by the localDirectory
property will be deleted, including non-versioned JSPs.
For more information about the SelectiveDeleteVFSService
, see the ATG Content Administration Programming Guide.