コード例 #1
0
 public <T> T execute(
     BuildAction<T> action,
     BuildCancellationToken cancellationToken,
     ProviderOperationParameters actionParameters) {
   BuildActionParameters parameters =
       new DefaultBuildActionParameters(
           new GradleLauncherMetaData(),
           actionParameters.getStartTime(),
           this.parameters.getEffectiveSystemProperties(),
           System.getenv(),
           SystemProperties.getCurrentDir(),
           actionParameters.getBuildLogLevel());
   try {
     return executer.execute(action, cancellationToken, parameters);
   } catch (ReportedException e) {
     throw new BuildExceptionVersion1(e.getCause());
   }
 }
コード例 #2
0
 private Runnable runBuild(
     StartParameter startParameter,
     DaemonParameters daemonParameters,
     BuildActionExecuter<BuildActionParameters> executer,
     ServiceRegistry sharedServices) {
   BuildActionParameters parameters =
       new DefaultBuildActionParameters(
           daemonParameters.getEffectiveSystemProperties(),
           System.getenv(),
           SystemProperties.getInstance().getCurrentDir(),
           startParameter.getLogLevel(),
           daemonParameters.getDaemonUsage(),
           startParameter.isContinuous(),
           daemonParameters.isInteractive(),
           ClassPath.EMPTY);
   return new RunBuildAction(
       executer,
       startParameter,
       clientMetaData(),
       getBuildStartTime(),
       parameters,
       sharedServices);
 }