sling.properties | Which is the correct location in CQ | Community
Skip to main content
Level 4
October 16, 2015
Solved

sling.properties | Which is the correct location in CQ

  • October 16, 2015
  • 1 reply
  • 3290 views

Hi all,

 

I see "sling.properties" file at many places in CQ installation. Which is the correct location of sling.properties which CQ reads.
 
I see it at following locations:
cq5.6.1\crx-quickstart\sling.properties
cq5.6.1\crx-quickstart\conf\sling.properties
cq5.6.1\crx-quickstart\launchpad\conf\sling.properties

 

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Hi Rohit Pathak,

If you start CQ using the script crx-quickstart/bin/start, then the file crx-quickstart/sling.properties is used when CQ start up. However, if you start using the jar file (e.g. java -jar cq5-author-4502.jar), the file crx-quickstart/conf/sling.properties is used instead. If the sling.properties does not exist for any reason, it will automatically create a default one.

Thus, depending on how you start CQ, it will determine which sling.properties is used. You can remove the one that you do not need.

Thanks,
Sham

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Hi Rohit Pathak,

If you start CQ using the script crx-quickstart/bin/start, then the file crx-quickstart/sling.properties is used when CQ start up. However, if you start using the jar file (e.g. java -jar cq5-author-4502.jar), the file crx-quickstart/conf/sling.properties is used instead. If the sling.properties does not exist for any reason, it will automatically create a default one.

Thus, depending on how you start CQ, it will determine which sling.properties is used. You can remove the one that you do not need.

Thanks,
Sham