cancel
Showing results for 
Search instead for 
Did you mean: 

What is use of local.properties?

Former Member
0 Kudos
 

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This is a file which holds global configuration of your commerce application. Each project/extension has its own project.properties, it's similar to that but it has the higher priority than extension's project.properties file. If you have configured the same property of some extension in this file, then the property define in local.properties will be taken into account.

Answers (2)

Answers (2)

former_member595526
Active Participant

local.properties file is used to configure the properties which is used in project.

let's say you have mail property such as name and port to be configured for the project

if you hard code it, it would be a problem when you hand it over to client. instead you can put it in local.properties file and read it in your code. So that it can be easily changed in properties file instead in your code.

Hope it helps you

Former Member
0 Kudos

This file is mainly used for configuring some properties in your project.

Because there're many extensions, defined in this file, you can use it in any extension.

When you edited the local.properties in hybris/common folders, after ant all, this change will be written in config/local.properties because of the config/local.properties can't be edited.