Patent attributes
Software and methods for building a multiplatform installation program are disclosed. Embodiments of the invention create a novel class as a proxy for the Archive builder support method and call the methods in this new class for the build methods of custom beans instead those of the archive builder support. This proxy archive builder support method keeps a list of classes which have already been added for a given build. If the class is already been added, it is ignore on subsequent calls. If the class has not been added, it is passed to the archive builder support method to process and add it to the archive. In addition, Java provides APIs to inspect a class and find its dependencies programmatically. When the archive builder support method is called on a class, the class is also inspected for its dependencies. Any dependent classes are added as well using archive builder support method. This process is also performed recursively so dependencies of dependencies (and so on) are added as well.