How to use generic variable for project library path and make it machine independent for projects checked out in RMS (Rules Management Server)?

How to use generic variable for project library path and make it machine independent for projects checked out in RMS (Rules Management Server)?

book

Article ID: KB0092852

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
TIBCO BusinessEvents project has a reference to a project library. When integrating this project with RMS on a different server, it requires updating the reference to the project library from the server to make the project valid or compile successfully.This solution will provide details on ways to define the project library path using an environment variable and avoid updating the path in project itself.

Issue/Introduction

How to use generic variable for project library path and make it machine independent for projects checked out in RMS (Rules Management Server)?

Resolution

Use a variable to define the path to the project library instead of adding the library directly.


1). In BE studio, define project library in build path with variable.


Right Click on Project --> Properties --> Build Path --> Project Libraries --> Add Variable


For example, add a variable with name "CUST_PROJLIB"


2). After integrating with RMS, to make the generated deployable work, set the path value for CUST_PROJLIB in studio-tools.tra on target server machine:


java.property.CUST_PROJLIB=/Path/to/project/library/on/server