Programmatically get path to CRX Quickstart | Community
Skip to main content
Peter_Puzanovs
New Participant
October 5, 2016
Solved

Programmatically get path to CRX Quickstart

  • October 5, 2016
  • 4 replies
  • 2001 views

Which OSGi/Sling/AEM API could be used to retrieve file system path to CRX Quickstart folder?

E.g. Get the path to CRX Quickstart folder.

Regards,

Peter

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 smacdonald2008

I would look at using standard Java file/folder functionality. 

https://docs.oracle.com/javase/tutorial/essential/io/find.html

That should get the result you need to programmatically locate the AEM QuickStart. 

4 replies

edubey
New Participant
October 6, 2016

Why don't you make it configurable via OSGI, since its very rare that it will going to changed. 

Once AEM is setup in any environment you can configure the location, it would be one time job.

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 5, 2016

I would look at using standard Java file/folder functionality. 

https://docs.oracle.com/javase/tutorial/essential/io/find.html

That should get the result you need to programmatically locate the AEM QuickStart. 

Peter_Puzanovs
New Participant
October 5, 2016

Hi Scott,

Thank you for your reply,

Third party system is uploading their exported data into crx quick start directory.

The need from AEM, is to read archive from crx quickstart directory and insert data into CRX.(OOTB Importer functionality did not satisfy them...).

Would like to avoid hard coding crx quick start location for each environment, instead getting those Programmatically would be beneficial.

Regards,

Peter

smacdonald2008
New Participant
October 5, 2016

I am not aware of any API in the AEM SDK that would return this value. Whats the need to get this value?