Controlling the location of RPE temporary files


RPE creates and uses temporary files during document template/specification design and when doing document generation. The files are created in designated OS temporary folders meaning they should be suitable for most installations. However there are scenarios where the location needs to be changed

You can change the location of the Launcher/Studio temp files by modifying the rpe-launcher.ini and rpe-studio.ini files. Each file contains 2 lines defining the temporary folder to be used:

-Dosgi.configuration.area=@user.home/Application Data/IBM/Rational/RPE_20111031_1455/Launcher/configuration/
-Dosgi.instance.area=@user.home/Application Data/IBM/Rational/RPE_20111031_1455/Launcher/workspace/

Changing this to a different folder will result in RPE creating the files there.

-Dosgi.configuration.area=d:/temp/rpe/Launcher/configuration/
-Dosgi.instance.area=d:/temp/rpe/Launcher/workspace/

The Studio and Launcher temporary folders cannot be the same.

The RPE runtime temporary files are are created in the System’s %TEMP% folder. These are the files created at runtime (partial output files, cached data etc) and that get deleted once the doc gen is complete. On Windows machines the %TEMP% folder is in C:\Documents and Settings\<> You can change that by specifying a value for the java.io.tmpdir in the same ini files.

-vm
..\jre\bin
--launcher.library
C:\Program Files (x86)\IBM\Rational\Publishing Engine\1.1.2.1\launcher
....
-Djava.io.tmpdir=d:/temp/rpe
....

A modified RPE 1.1.2.1 installation that creates all temp files in D:\temp\rpe looks like this:

rpe-launcher.ini

-vm
..\jre\bin
--launcher.library
C:\Program Files (x86)\IBM\Rational\Publishing Engine\1.1.2.1\launcher
-vmargs
-Xms56m
-Xmx1024m
-Dfile.encoding=UTF-8
-Dcom.ibm.rational.rpe.console.limit=100000
-Dosgi.configuration.area=d:/temp/rpe/Launcher/configuration/
-Dosgi.instance.area=d:/temp/rpe/Launcher/workspace/
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
-Dcom.ibm.rational.rpe.wstimeout=30000
-Djava.io.tmpdir=d:/temp/rpe

rpe-studio.ini

-vm
..\jre\bin
--launcher.library
C:\Program Files (x86)\IBM\Rational\Publishing Engine\1.1.2.1\launcher
-vmargs
-Xms56m
-Xmx1024m
-Dfile.encoding=UTF-8
-Dcom.ibm.rational.rpe.console.limit=100000
-Dosgi.configuration.area=d:/temp/rpe/Studio/configuration/
-Dosgi.instance.area=d:/temp/rpe/Studio/workspace/
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
-Dcom.ibm.rational.rpe.wstimeout=30000
-Djava.io.tmpdir=d:/temp/rpe
Advertisements

Author: Dragos Cojocari

Architect for Rational Publishing Engine

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s