System.out.println(" to: "+result.getCanonicalPath());
File webXml = new File(args[0], Assembler.SERVLET_XML);
File portletXml = new File(args[0], Assembler.PORTLET_XML);
AssemblerConfig config = new AssemblerConfig();
config.setWebappDescriptor(webXml);
config.setPortletDescriptor(portletXml);
config.setDestination(webXml);
Assembler assembler = AssemblerFactory.getFactory()
.createAssembler(config);
config.setPortletDescriptor(portletXml);
config.setWebappDescriptor(webXml);
assembler.assemble(config);
System.out.println("Complete!");
}