Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Programmatically get path to CRX Quickstart

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

4 Replies

Avatar

Level 10

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

Avatar

Community Advisor

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

Avatar

Correct answer by
Level 10

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. 

Avatar

Level 10

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.