Forum Discussion

cmenardTst15's avatar
cmenardTst15
New Contributor
10 years ago

using property expansion in Environments

Hi Everyone,

 

Does anyone know if its possible to use property expansion syntax in an Environment configuration?

 

I've tried configuring endpoints using things such as ${#Project#server} or ${#Env#server} and these do not reconcile to actual values when I select the appropriate environment.

 

Thoughts?

 

Thank you,

 

Craig

 

1 Reply

  • I will give you an example of what we do. I hope it helps. 

     

    In the Environment section Custom Properties tab, we create the property name and value. For instance, CUSTDBIP is the database IP address.

     

    Set the same fields for each environment you have.It's imperitive that the Name propertys are the same for every environment. 

     

    So an example of how to use it, in setting up the JDBC Connections:

     

    jdbc:sqlserver://${#Project#CUSTDBIP}:1433;databaseName=${#Project#CUSTDBNAME};user=${#Project#CUSTDBUSER};password=PASS_VALUE

     

    Hope this helps