Create package using java code. | Community
Skip to main content
Nandujee
Level 3
October 16, 2015
Solved

Create package using java code.

  • October 16, 2015
  • 2 replies
  • 1275 views

Hi,

How to take a backup of some folder through java code. because I have below scenario

Whenever user upload the file, I have to take backup of  some folder and package it and store it in the CRX.

Kindly give your suggestion.

Thanks

Nanda

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

You can use this API to programmatically work with packages:

https://docs.adobe.com/docs/en/cq/5-5/javadoc/com/day/jcr/vault/packaging/PackageManager.html

Using this API - you can assemble a package. 

2 replies

Sham_HC
Level 10
October 16, 2015
smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

You can use this API to programmatically work with packages:

https://docs.adobe.com/docs/en/cq/5-5/javadoc/com/day/jcr/vault/packaging/PackageManager.html

Using this API - you can assemble a package.