Editing a configuration file for DevOps Test Integrations and APIs
After you generate an XML configuration file, you might need to change it if the target computer is different from the generated configuration. For example, the libraries and their locations in the configuration file do not match the libraries and their locations on the target computer.
To edit a configuration file, follow these steps:
Example: Adding a provider
It is not possible to modify file paths or file names for the pre-defined entries. In the GUI version of the tool, you add your configuration by copying an existing entry and editing the new one. This example shows you how to do this with a text editor and adds a new JDBC provider for Db2® on z/OS.
The file to use is /opt/IBM/RTVS_JARs/db2jcc_license_cisuz.jar
Locate the provider section of librarysettings.xml for the technology, JDBC
in this case. Each section consists of the provider element and a number of
pathSets for each provider. Each pathSet has a display name for use in the GUI,
and a unique id such as "db2". It contains
pathElements for each file. The provider element has the
selectedPathSets attribute to define which of the providers are enabled.
Here is a partial listing of the default JDBC section:
<provider id="com.ghc.jdbc" selectedPathSets="org.apache.derby,com.ibm.db2.jdbc,com.oracle.jdbc">
<pathSet displayName="Apache Derby (pre-installed)" id="org.apache.derby" userDefined="false"/>
...
</pathSet>
<pathSet displayName="IBM DB2 (pre-installed)" id="com.ibm.db2.jdbc" userDefined="false"/>
<pathSet base="/opt/SQLLIB/" displayName="IBM DB2 App driver" id="db2" userDefined="false">
<pathElement location="/opt/SQLLIB/" name="db2java.zip"/>
</pathSet>
<pathSet base="/opt/IBM/db2/V9.7/sqllib/" displayName="IBM DB2 Connect (for connecting to DB2 on z/OS)" id="db2-zos" userDefined="false">
<pathElement location="/opt/IBM/db2/V9.7/sqllib/java" name="db2jcc_license_cisuz.jar"/>
</pathSet>
...
<pathSet base="/opt/Sybase/jConnect-6_0/" displayName="Sybase (jConnect 6.05)" id="syb-jcon-605" userDefined="false">
<pathElement location="/opt/Sybase/jConnect-6_0/classes" name="jconn3.jar"/>
</provider>
ids:
selectedPathSets="org.apache.derby,com.ibm.db2.jdbc,com.oracle.jdbc"
pathSet section and edit:baselocation - use /id- make this uniqueuserDefinedlocationname
Add a pathElement for each additional file as required, in this case it is a
single file.
<pathSet base="/" displayName="IBM DB2 Connect (for connecting to DB2 on z/OS)" id="db2-zos-custom" userDefined="true">
<pathElement location="/opt/IBM/RTVS_JARs" name="db2jcc_license_cisuz.jar"/>
</pathSet>
Add the new id to selectedPaths to enable this provider:
selectedPathSets="org.apache.derby,com.ibm.db2.jdbc,com.oracle.jdbc,db2-zos-custom"
Save the file.