Customization > Working with Properties > Setting Property Values and Propagating Your Changes
Setting Property Values and Propagating Your Changes
Objective
Modify the value of a property in a Windchill property file.
Solution Element
Element
Type
Description
custom.site.xconf
XCONF
XCONF file to add or modify Windchill properties.
Located at <customizationRootDirectory>/configurations/xconf/custom.site.xconf
Procedure
1. Add the applicable elements to the custom.site.xconf file as shown in the table.
2. Deploy the changes using CCD deploy target. For more information, see External Targets.
Task
Element
Attributes
Comments
Set the value of a property
<Property>
Property name
Target property file
Property value
Example:
<Property name="wt.java.classpath" targetFile="codebase/wt.properties"value="d:\MyLibaries\somelibrary.jar" />
Reset the value of a property to its default value
<ResetProperty>
Property name
Target property file
Example:
<ResetProperty name="wt.temp" targetFile="codebase/wt.properties" />
Reset the value of a property to null
<UndefineProperty>
Property name
Target property file
Example:
<UndefineProperty name="st.services.service:1160" />
If you want to set the value to an empty string use <Property> element and specify “” as the value.
Add a value to a multi-valued property
<AddToProperty>
Property name
Target property file
Property value
Example:
<AddToProperty name="wt.java.classpath" value="d:\MyLibaries\somelibrary.jar" />
The new value is added at the end.
Remove a value from a multi-valued property
<RemoveFromProperty>
Property name
Target property file
Property value
Example:
<RemoveFromProperty name="wt.java.classpath" value="d:\MyLibaries\somelibrary.jar" />
Was this helpful?