Exemplo n.º 1
0
 @Nullable
 public Aspect createAspect(
     AnalysisEnvironment env,
     RuleConfiguredTarget associatedTarget,
     ConfiguredAspectFactory aspectFactory,
     ListMultimap<Attribute, ConfiguredTarget> prerequisiteMap,
     Set<ConfigMatchingProvider> configConditions,
     AspectParameters aspectParameters) {
   return factory.createAspect(
       env,
       associatedTarget,
       aspectFactory,
       aspectParameters,
       prerequisiteMap,
       configConditions,
       getHostConfiguration(associatedTarget.getConfiguration()));
 }
Exemplo n.º 2
0
 /**
  * Invokes the appropriate constructor to create a {@link ConfiguredTarget} instance.
  *
  * <p>For use in {@code ConfiguredTargetFunction}.
  *
  * <p>Returns null if Skyframe deps are missing or upon certain errors.
  */
 @Nullable
 ConfiguredTarget createConfiguredTarget(
     Target target,
     BuildConfiguration configuration,
     CachingAnalysisEnvironment analysisEnvironment,
     ListMultimap<Attribute, ConfiguredTarget> prerequisiteMap,
     Set<ConfigMatchingProvider> configConditions)
     throws InterruptedException {
   Preconditions.checkState(
       enableAnalysis, "Already in execution phase %s %s", target, configuration);
   return factory.createConfiguredTarget(
       analysisEnvironment,
       artifactFactory,
       target,
       configuration,
       getHostConfiguration(configuration),
       prerequisiteMap,
       configConditions);
 }