During the upgrade, you are prompted for the target installation directory. New preupgrade and postupgrade steps let you copy files to and from the CA Clarity PPM directory using ant-based scripting. Use ant scripts to automate preserving and restoring customization in the CA Clarity PPM directories.
Templates are provided in release-specific upgrade folders that are located in the installer root directory (at the same level as the install.bat file). The templates are: preprocess-upgrade.xml and postprocess-upgrade.xml.
Example of preprocess-upgrade.xml script
<project name="content" default="upgrade" basedir=".">
<target name="upgrade">
<echo>Preserving customer specified files prior to upgrade from install.dir = ${install.dir}</echo>
<if fileexists="${install.dir}" not="true">
<fail>Install dir not specified = ${install.dir}</fail>
</if>
<delete dir="upgrade_temp"/>
<mkdir dir="upgrade_temp" />
<!-- Uncomment the copy below and list the files to be included for preservation -->
<!--<copy todir="upgrade_temp">
<fileset dir="${install.dir}" >
<include name="myfiles/my*.*"/>
<include name="abb/*01.jar"/>
<include name="a*01.jar"/>
</fileset>
</copy>-->
</target>
</project>
Example of postprocess-upgrade.xml script
<project name="content" default="upgrade" basedir=".">
<target name="upgrade">
<echo>Restoring customer specified files after upgrade to install.dir = ${install.target.dir}</echo>
<if fileexists="${install.target.dir}" not="true">
<fail>Install dir not specified = ${install.target.dir}</fail>
</if>
<!-- Uncomment the copy task below and list the files to be restored that were preserved in
the preprocess-upgrade.xml script.-->
<!--<copy todir="${install.target.dir}">
<fileset dir="upgrade_temp" >
<include name="myfiles/my*.*"/>
<include name="abb/*01.jar"/>
<include name="a*01.jar"/>
</fileset>
</copy>-->
</target>
</project>
|
Copyright © 2013 CA.
All rights reserved.
|
|