ovfFiles[i] = ovfFile;
}
OvfCreateDescriptorParams ovfDescParams = new OvfCreateDescriptorParams();
ovfDescParams.setOvfFiles(ovfFiles);
OvfCreateDescriptorResult ovfCreateDescriptorResult =
si.getOvfManager().createDescriptor(me, ovfDescParams);
String ovfPath = targetDir + vAppOrVmName + ".ovf";
FileWriter out = new FileWriter(ovfPath);
out.write(ovfCreateDescriptorResult.getOvfDescriptor());
out.close();
System.out.println("OVF Desriptor Written to file: " + ovfPath);
}
System.out.println("Completed Downloading the files");