Safe Area Directory Structure
Under the wtSafeArea directory shown in the diagram, notice that a similar directory structure is shown for the siteMod, ptcCurrent, and ptcOrig subdirectories. For example if the installed file <ACD_HOME>/INS_SW/SW/../codebase/templates/abcx.html has been modified, then the following set of related files is located under the wtSafeArea directory:
wtSafeArea/siteMod/SW/Applications/windchill.ear/codebase.war/templates/abcx.html
wtSafeArea/ptcCurrent/SW/Applications/windchill.ear/codebase.war codebase/templates/abcx.html
wtSafeArea/ptcOrig/SW/Applications/windchill.ear/codebase.war codebase/templates/abcx.html
The following summary describes the purpose of each subdirectory:
siteMod contains the site version of each PTC file that you have modified and want to run in production.
ptcCurrent contains the current PTC version of the file. This is a version newer than the version in the ptcOrig directory and is copied to the directory by the PTC Arbortext Content Delivery when the installer finds a corresponding file in the siteMod directory.
ptcOrig contains the original file from PTC. Put the version of the file in this directory before you modify it for the first time and place the customized version in the siteMod directory.
siteMod
Under this directory structure, store the site version of PTC files that you modify and want to run in production
When running the PTC Arbortext Content Delivery installer, selecting the Complete installation type option directs the installer to copy files from the siteMod directories to the selected installation directory. The files that are copied overwrite existing files in the installation directory. The actual file copying is done by the execution of the installSiteChanges target of the InS_SW/SW/insSafeArea.xml Ant script. For more information on this target, see PTC Script for Working with Customized Files.
As described in PTC Script for Working with Customized Files, there are a few files that you should not put under the siteMod directory.
You must place and update files in this directory yourself; the PTC Arbortext Content Delivery installer does not modify the files in the directory.
ptcCurrent
This directory structure holds the most current PTC versions of files you have modified (as identified by the presence of those files under the siteMod directory).
PTC Arbortext Content Delivery installer automatically places files in this directory when the following things are true:
The siteMod directory exists.
There are files in the siteMod directory that are being updated by the PTC Arbortext Content Delivery installer.
The files copied to the ptcCurrent directory are the files in the PTC Arbortext Content Delivery that have the same name as files found in the siteMod directory. Instead of copying these files to your installation directory, the files are put in the ptcCurrent directory. This means that your customized files are not overwritten by the updated PTC files.
After running the PTC Arbortext Content Delivery installer (using any of the installation types), this directory contains updated PTC versions of the set of files that have been modified at your site.
A file appears in the ptcCurrent directory when PTC delivers an updated version in a maintenance release, but only after you initially create your customized version in the siteMod directory.
ptcOrig
Before making first-time modifications to a file, put a copy of the original PTC file in this directory. The original PTC file is the last version of the file that PTC delivered prior to making modifications. This file could be the file supplied in a major release or in one of the maintenance releases.
You must place files in this directory yourself. The PTC Arbortext Content Delivery installer does not modify the files in the directory.
ptcOrig is a suggested directory name; there are no PTC tools that actually look for this name.
After setting up this directory structure and installing updated files, you can compare the most recent version of a file from PTC (located in the ptcCurrent directory) with the currently deployed file (located in the siteMod directory) and the original version of the file (located in the ptcOrig directory). From the comparisons, you can determine how the version in the siteMod directory should be updated to incorporate the latest changes from PTC. For additional information, see Using the Safe Area Directory Structure When Installing .