Setting Specific Property Values
The property values you set must conform with the specification for java.util.Properties. The following guidelines will help ensure that you set properties correctly:
Use forward slashes (/) in file paths so that the platform designation is not an issue.
To specify a property whose value contains characters that might be interpreted by your shell, escape them using the appropriate technique for the shell you are using.
For example, on a Windows system, you can include spaces in a value by enclosing the argument with doubles quotes, such as the following:
-s wt.inf.container.SiteOrganization.name="ACME Corporation"
On a UNIX system, you can use doubles quotes or you can escape the space character with a backslash, such as the following:
-s wt.inf.container.SiteOrganization.name="ACME\ Corporation"
On UNIX, dollar signs are usually interpreted by shells as variable prefixes. To set a property value that has a dollar symbol in it, use single quotes around the argument so that it is not interpreted by the shell or use backslash to escape the dollar symbols. For example, use either of the following:
-s 'wt.homepage.jsp=$(wt.server.codebase)/wtcore/jsp/wt/portal/index.jsp'
or
-s wt.homepage.jsp=\$(wt.server.codebase)/wtcore/jsp/wt/portal/index.jsp
Other than escaping arguments so that the command line shell does not misinterpret them, the values should not need to be escaped any further to be compatible with XML or property file syntaxes. Property names and values are escaped automatically by CCD if necessary.
The following entry in the configurations/xconf/custom.site.xconf file used on a Windows system sets the wt.temp property in the wt.properties property file to the WCtemp directory that is under the Windchill installation directory as defined by $(wt.home):
<Property name="wt.temp" value="$(wt.home)/WCtemp" targetFile="codebase/wt.properties" />
When setting passwords, specify the password in plain text. The password will be encrypted as described in System Password Encryption.
Was this helpful?