In a previous post I explained how to perform a full import of the D2 configuration without using D2-Config (D2-Config without ActiveX). You can also export the D2-Configuration to a XML file by using the bundled d2configutils in D2-Config. But how about exporting a full D2-Config as a zip file (including images, etc.)?. Well, here you go:
getSManager(); session=sm.getSession("repository"); D2Session.initTBOEx(session,false); D2Config config=new D2Config(session); //this will place the zip file in your temp folder File zipConfigfile = config.getZipExport(null, null, false, new ArrayList()); sm.release(session);
If you want to export just a single application/configuration, just change the second parameter to the name of your application/configuration.