/** * Generates a deployment package and streams it to the output stream you provide. Before it starts generating, it * will first validate that you have actually specified a resource processor for each type of artifact you provided. * * @param output * the output stream to write to * @throws Exception * if something goes wrong while validating or generating */ public void generate(OutputStream output) throws Exception { validateArtifacts(); List<ArtifactData> artifacts = new ArrayList<>(); artifacts.addAll(m_bundles); artifacts.addAll(m_processors); artifacts.addAll(m_artifacts); Manifest m = createManifest(artifacts); writeStream(artifacts, m, output); }