Build package programmatically

Avatar

Avatar

ronnyfm

Avatar

ronnyfm

ronnyfm

02-01-2017

Hello,

I am able to assemble a package using the JcrPackageManager assemble method, however in the package manager I get the package definition and the filters, but the package itself needs to be built. I am sure there should be a way, since it is possible via the HTTP interface using curl.

Thanks.

View Entire Topic

Avatar

Avatar

ronnyfm

Avatar

ronnyfm

ronnyfm

03-01-2017

Found the issue, I was calling:

assemble(JcrPackageDefinition definition, ProgressTrackerListener listener, java.io.OutputStream out)

But that writes the file to the output stream requiring therefore an additional build step. The solution was to invoke:

assemble(JcrPackage pack, ProgressTrackerListener listener)

Thanks all for your time.