@classmethod
def classpath(cls, targets, classpath_products, confs=('default',)):
    """Return the classpath as a list of paths covering all the passed targets.

        :param targets: Targets to build an aggregated classpath for.
        :param ClasspathProducts classpath_products: Product containing classpath elements.
        :param confs: The list of confs for use by this classpath.
        :returns: The classpath as a list of path elements.
        :rtype: list of string
        """
    classpath_iter = cls._classpath_iter(classpath_products.get_for_targets
        (targets), confs=confs)
    return list(classpath_iter)
