use of org.jboss.as.patching.metadata.BundledPatch in project wildfly-core by wildfly.
the class PatchingTestUtil method createPatchBundleXMLFile.
public static void createPatchBundleXMLFile(File dir, final List<BundledPatch.BundledPatchEntry> patches) throws Exception {
File bundleXMLFile = new File(dir, "patches.xml");
FileOutputStream fos = new FileOutputStream(bundleXMLFile);
try {
PatchBundleXml.marshal(fos, new BundledPatch() {
@Override
public List<BundledPatchEntry> getPatches() {
return patches;
}
});
} finally {
safeClose(fos);
}
}
Aggregations