Ejemplo n.º 1
0
    def __init__(self, context, confs=None):
        super(IvyResolve, self).__init__(context)
        work_dir = context.config.get('ivy-resolve', 'workdir')

        self._ivy_bootstrapper = Bootstrapper.instance()
        self._cachedir = self._ivy_bootstrapper.ivy_cache_dir
        self._confs = confs or context.config.getlist(
            'ivy-resolve', 'confs', default=['default'])
        self._classpath_dir = os.path.join(work_dir, 'mapped')

        self._outdir = context.options.ivy_resolve_outdir or os.path.join(
            work_dir, 'reports')
        self._open = context.options.ivy_resolve_open
        self._report = self._open or context.options.ivy_resolve_report

        self._ivy_bootstrap_key = 'ivy'
        ivy_bootstrap_tools = context.config.getlist('ivy-resolve',
                                                     'bootstrap-tools',
                                                     ':xalan')
        self._jvm_tool_bootstrapper.register_jvm_tool(self._ivy_bootstrap_key,
                                                      ivy_bootstrap_tools)

        self._ivy_utils = IvyUtils(config=context.config,
                                   options=context.options,
                                   log=context.log)
        context.products.require_data('exclusives_groups')

        # Typically this should be a local cache only, since classpaths aren't portable.
        self.setup_artifact_cache_from_config(config_section='ivy-resolve')
Ejemplo n.º 2
0
  def __init__(self, context, confs=None):
    super(IvyResolve, self).__init__(context)
    work_dir = context.config.get('ivy-resolve', 'workdir')

    self._ivy_bootstrapper = Bootstrapper.instance()
    self._cachedir = self._ivy_bootstrapper.ivy_cache_dir
    self._confs = confs or context.config.getlist('ivy-resolve', 'confs', default=['default'])
    self._classpath_dir = os.path.join(work_dir, 'mapped')

    self._outdir = context.options.ivy_resolve_outdir or os.path.join(work_dir, 'reports')
    self._open = context.options.ivy_resolve_open
    self._report = self._open or context.options.ivy_resolve_report

    self._ivy_bootstrap_key = 'ivy'
    ivy_bootstrap_tools = context.config.getlist('ivy-resolve', 'bootstrap-tools', ':xalan')
    self._jvm_tool_bootstrapper.register_jvm_tool(self._ivy_bootstrap_key, ivy_bootstrap_tools)

    self._ivy_utils = IvyUtils(config=context.config,
                               options=context.options,
                               log=context.log)
    context.products.require_data('exclusives_groups')

    # Typically this should be a local cache only, since classpaths aren't portable.
    self.setup_artifact_cache_from_config(config_section='ivy-resolve')
Ejemplo n.º 3
0
 def xml_report_path(self, targets, conf):
     """The path to the xml report ivy creates after a retrieve."""
     org, name = self.identify(targets)
     cachedir = Bootstrapper.instance().ivy_cache_dir
     return os.path.join(cachedir, '%s-%s-%s.xml' % (org, name, conf))
Ejemplo n.º 4
0
 def xml_report_path(self, targets, conf):
   """The path to the xml report ivy creates after a retrieve."""
   org, name = self.identify(targets)
   cachedir = Bootstrapper.instance().ivy_cache_dir
   return os.path.join(cachedir, '%s-%s-%s.xml' % (org, name, conf))